# io.github.libtmux.Keys.Keys

- **Module:** io.github.libtmux.Keys
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Keys.java#L21
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-keys-keys/

The server's key bindings, in one key table or across all of them.

tmux keeps bindings in named tables: {@code prefix}, pressed after the prefix key, is where a
binding goes unless another table is named; {@code root} is pressed without it; the copy-mode
tables belong to copy mode. {@link Server#keys()} answers for {@code prefix} when binding and for
every table when listing; {@link #in} names one.

## Example

```java
server.keys().bind("F12", List.of("display-message", "hello"));
server.keys().in("root").bind("F11", List.of("next-window"));
```

## Members

- `Keys` (method)
- `in` (method): The same bindings, in one named table.
- `bind` (method): Binds a key to a tmux command, given as its words.
- `unbind` (method): Removes a key's binding.
- `list` (method): The bindings as tmux lists them, one per line.
