prevent scrolling when pressing the arrow keys