Skip to content

Key names

This page lists every name you can use when writing a shortcut in [bindings].

A shortcut is one or more modifiers and exactly one key, joined by dashes:

option-shift-h
cmd-ctrl-left
ctrl-option-f5
  • Names are not case sensitive. Alt-H is read as option-h.
  • The order of the modifiers does not matter.
  • At least one modifier is required.
  • A doubled dash at the end means the minus key: option-- is option-minus.
Name Key Also accepted
cmd Command (⌘) command, super
ctrl Control (⌃) control
option Option (⌥) opt
shift Shift (⇧)

a to z and 0 to 9. The digits are the ones in the row above the letters.

Name Key
minus -
equal =
comma ,
period .
slash /
backslash \
semicolon ;
quote ’
backtick `
leftbracket [
rightbracket ]
Name Key
space Space bar
tab Tab
return Return. enter is accepted as another name for the same key.
delete Delete, the key that erases backwards
esc Escape. escape is also accepted.
left Left arrow
right Right arrow
up Up arrow
down Down arrow

f1 to f12.

A key name stands for a physical key: the one that carries that character on a US keyboard. On another layout, slash is still the key in that position, whatever is printed on it.

  • An unknown modifier is reported as, for example, 'hyper-h': unknown modifier 'hyper' (use cmd, ctrl, option, shift).
  • A shortcut without a modifier is reported as a binding needs at least one modifier.
  • An unknown key is reported as, for example, binding 'option-foo': unknown key 'foo'.

Each is a warning for that one shortcut. iguana status lists them.