pub fn vim_key_to_action(key: KeyEvent, state: &mut VimState) -> Action
Process a key event through the vim state machine.