Added arrow key behavior.