Modified arrow key press handlers.