Proper movement with arrow key