Fixing bug of scrolling up on arrow key press.