fixed scrolling for left and right arrow keys