update parser (cursor movement up/down/left/right)