Skip to content

How to find the Key Labels

cajhin edited this page Jan 2, 2021 · 9 revisions

How to find the key labels for my keys

The key labels that you use in the capsicain.ini are different from Autohotkey or TMK.

Simple keys

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
1 2 3 4 5 6 7 8 9 0 
, . 
F1 F2 F3 .... F23

Modifier and Control key labels

LSHF LCTRL LWIN LALT 
RSHF RCTRL RWIN RALT 
SPACE RET BSP TAB CAPS 
UP DOWN LEFT RIGHT
INS DEL HOME END PGUP PGDOWN
(Numpad keys:) NP0 ... NP9 NP* NP/ NP+ NP-
NUMLOCK SCRLOCK PAUSE

For example, REWIRE BSP RSHF will turn your backspace key into a right Shift key.

These labels are obvious only on US-English keyboards

/ ; ' \ [ ] - =

If you use an international keyboard layout, this is a bit confusing.
For example, Windows translates the [;] key to "Ö" on a German keyboard - but it is still the [;] key!

Only on ISO (Euro) boards

L\ is the 'left backslash key', between Left Shift and Z.

Only on Korean boards

"Hanja" = LANG2

"Han/Yeong" = LANG1

These keys are special. They send no "key down", only a "key up" (or the other way around?).

If you need a special feature for these keys, open a ticket.

I cannot find the label for my special key

Either:
press [ESC]+[C] (for scanCodes) for a list of all keys

Or:

  1. Press [ESC]+[D] (for Debug mode, capsicain console shows every key event)
  2. Tap the left Shift key
  3. The console shows ( 123 ms) [ LSHFv =2a 0] [M:0] (0 ms) -- {LSHFv #1}.
  4. -> key label for the left shift key is "LSHF"
  5. Press any key you want and you see its label

! Be Careful if you select something in the console, this will freeze the console, and all keyboard input.
Make sure you right-click into the console after copying.

Nothing happens for some keys?

Not all keys send out a key code. In that case, you cannot do anything with it.

For example, [Fn] is often handled by the keyboard.

Logitech media buttons like "Volume+" send 'special' USB codes, not key events.