I usually duplicate the line if i need to use the code same as the above line. I did not find the shortcut key to duplicate the line . I saw some posts to implement shortcut key to duplicate line but they are rather complicated and requires to run script every time.
I found the solution just in case anyone wants to use it.
Alt + Shift + Down_arrow