Fix jumpy scroll on up/down arrow key events

Prevents default scrolling for up/down arrow keys to provide a smoother transition when they are used.