# input_key

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

```c
int input_key(struct screen *s, struct bufferevent *bev, key_code key)
```

## Parameters

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

## Called by

- [`input_key_pane`](/en/tmux/latest/reference/c-function-input_key_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L410)
- [`popup_key_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L644)

## Calls

- [`input_key_extended`](/en/tmux/latest/reference/c-function-input-keys-c-input_key_extended/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L696)
- [`input_key_get`](/en/tmux/latest/reference/c-function-input-keys-c-input_key_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L657)
- [`input_key_mode1`](/en/tmux/latest/reference/c-function-input-keys-c-input_key_mode1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L702)
- [`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#L707)
- [`input_key_write`](/en/tmux/latest/reference/c-function-input-keys-c-input_key_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L587)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L594)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L593)
- [`utf8_to_data`](/en/tmux/latest/reference/c-function-utf8_to_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L642)

## Referenced declarations

- [`C0_CR`](/en/tmux/latest/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-c0_cr/) (constant)
- [`C0_ESC`](/en/tmux/latest/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-c0_esc/) (constant)
- [`C0_HT`](/en/tmux/latest/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-c0_ht/) (constant)
- [`input_key_entry.data`](/en/tmux/latest/reference/c-struct-input_key_entry-data/) (attribute)
- [`utf8_data.data`](/en/tmux/latest/reference/c-struct-utf8_data-data/) (attribute)
- [`EXTENDED_KEY_MODES`](/en/tmux/latest/reference/c-define-tmux-h-extended_key_modes/) (constant)
- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`KEYC_BSPACE`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_bspace/) (constant)
- [`KEYC_BTAB`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_btab/) (constant)
- [`KEYC_CTRL`](/en/tmux/latest/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_CURSOR`](/en/tmux/latest/reference/c-define-tmux-h-keyc_cursor/) (constant)
- [`KEYC_IMPLIED_META`](/en/tmux/latest/reference/c-define-tmux-h-keyc_implied_meta/) (constant)
- [`KEYC_IS_MOUSE`](/en/tmux/latest/reference/c-define-tmux-h-keyc_is_mouse/) (constant)
- [`KEYC_IS_PASTE`](/en/tmux/latest/reference/c-define-tmux-h-keyc_is_paste/) (constant)
- [`KEYC_IS_SPECIAL`](/en/tmux/latest/reference/c-define-tmux-h-keyc_is_special/) (constant)
- [`KEYC_IS_UNICODE`](/en/tmux/latest/reference/c-define-tmux-h-keyc_is_unicode/) (constant)
- [`KEYC_IS_USER`](/en/tmux/latest/reference/c-define-tmux-h-keyc_is_user/) (constant)
- [`KEYC_KEYPAD`](/en/tmux/latest/reference/c-define-tmux-h-keyc_keypad/) (constant)
- [`KEYC_LITERAL`](/en/tmux/latest/reference/c-define-tmux-h-keyc_literal/) (constant)
- [`KEYC_MASK_FLAGS`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_flags/) (constant)
- [`KEYC_MASK_KEY`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_MASK_MODIFIERS`](/en/tmux/latest/reference/c-define-tmux-h-keyc_mask_modifiers/) (constant)
- [`KEYC_META`](/en/tmux/latest/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_SHIFT`](/en/tmux/latest/reference/c-define-tmux-h-keyc_shift/) (constant)
- [`screen.mode`](/en/tmux/latest/reference/c-struct-screen-mode/) (attribute)
- [`MODE_BRACKETPASTE`](/en/tmux/latest/reference/c-define-tmux-h-mode_bracketpaste/) (constant)
- [`MODE_KCURSOR`](/en/tmux/latest/reference/c-define-tmux-h-mode_kcursor/) (constant)
- [`MODE_KEYS_EXTENDED`](/en/tmux/latest/reference/c-define-tmux-h-mode_keys_extended/) (constant)
- [`MODE_KEYS_EXTENDED_2`](/en/tmux/latest/reference/c-define-tmux-h-mode_keys_extended_2/) (constant)
- [`MODE_KKEYPAD`](/en/tmux/latest/reference/c-define-tmux-h-mode_kkeypad/) (constant)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`utf8_data.size`](/en/tmux/latest/reference/c-struct-utf8_data-size/) (attribute)
