Put contraints on arrow key scrolling