Dot can change direction based on keyboard input