# Keyboard input
> How to mark a key or a key combination in an instruction so that the reader can tell it from ordinary text and code.
Source:
A key highlights a keyboard button inside an instruction and sets it apart
from ordinary text and code.
## Example
:::example {label="Key"}
```markdown
Press :kbd[Esc] to close the window.
```
:::
## Markup
```markdown
:kbd[Ctrl]
```
- The square brackets hold the key label, as on the keyboard. It is plain
text: HTML does not work inside, the `<` and `>` signs are shown as is.
- An empty key `:kbd[]` stops the build with the error
`CONTENT_COMPONENT_SLOT_REQUIRED`.
## Variants
### Combinations
Write each key separately and put a `+` sign between them as plain text.
Keys joined by `+` become one SIMAI Framework combination: the keys stand side
by side, without the `+` sign between them. Keys with words between them
("then", "after that") stay separate: they are pressed one after another.
:::example {label="Key combination"}
```markdown
Open search with :kbd[⌘] + :kbd[K], then press :kbd[Enter].
```
:::
## Accessibility
- The key is output as a `` element of the SIMAI
Framework key component, a key of one sign (`⌘`, `K`) as a square. A
combination is output as an outer `` with the
keys inside, and the `+` sign stays in the markup as a `.sf-kbd-join`
element. Screen readers recognise them as keyboard input.
- Write the label as a word or a symbol, as on the keyboard: `Esc`, `Enter`,
`⌘`.
- For a menu command, a file name or code choose plain text or backticks,
not a key.
## Parameters
No parameters.
Markup with parameters, for example `:kbd[Esc]{size=1}`, stops the build
with the error `CONTENT_COMPONENT_PROP_UNKNOWN`.
## See also
- [Badge](../badge/)
- [Code](../../code-and-data/code/)