# input_key_mode1

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L545
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-input-keys-c-input_key_mode1/

```c
static int input_key_mode1(struct bufferevent *bev, key_code key)
```

## Parameters

- `bev` (`struct bufferevent *`)
- `key` (`key_code`)

## Called by

- [`input_key`](/en/tmux/latest/reference/c-function-input_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L702)

## Calls

- [`input_key_vt10x`](/en/tmux/latest/reference/c-function-input-keys-c-input_key_vt10x/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L553)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L549)

## Referenced declarations

- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`KEYC_CTRL`](/en/tmux/latest/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_MASK_KEY`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_META`](/en/tmux/latest/reference/c-define-tmux-h-keyc_meta/) (constant)
