Moves in the same direction until a key is pressed.