---
id: input-key_label
name: Input.key_label
category: input
kind: namespace-method
tokens: Input.key_label
sig: Input.key_label(key) -> string
tip: The name to show a player for a key - in their own keyboard layout.
order: 11
ns: Input
member: key_label
---
Returns the name to show for key. The letter, digit and punctuation codes that Input.key_down reads are physical keys, named for what they type on a US layout: 'w' is the key above 's' on every keyboard, whatever layout, language, input method or Caps Lock state the player has. So WASD is always under the left hand, and the label is what that key types in the player's layout - "W" on QWERTY, "Z" on AZERTY. Space, Enter, Esc, Tab, Backspace, Shift, Ctrl, Alt and the arrows get words, and a code with no name returns "".
On Windows the label is read from the active layout. Headless, on macOS and in the browser it is the US character, upper case.
```ludic
program Demo {
entry {
print(Input.key_label('w'))
print(Input.key_label(32))
print(Input.key_label(Key.Left))
}
}
```