added arrow key controls