support for arrow key movement