Fetch Row Details on Enter Action with Lead Selection.

In our day to day programming need one may need to display the details of the row providing primary key and by hitting enter key they may need to populate its corresponding details. I have formed a scenario of the above mentioned business need.