Added arrow key press handlers.