added arrow key events