move cursor by keyboard.