= Key encoding for extended keyboard protocol

See link:protocol-extensions.asciidoc#keyboard-handling[Keyboard Handling protocol extension]

|===
| Name | Encoded representation

| 0               | `BM`
| 1               | `BN`
| 2               | `BO`
| 3               | `BP`
| 4               | `BQ`
| 5               | `BR`
| 6               | `BS`
| 7               | `BT`
| 8               | `BU`
| 9               | `BV`
| A               | `Bd`
| APOSTROPHE      | `BD`
| B               | `Be`
| BACKSLASH       | `CU`
| BACKSPACE       | `HH`
| C               | `Bf`
| CAPS LOCK       | `Hc`
| COMMA           | `BI`
| D               | `Bg`
| DELETE          | `HJ`
| DOWN            | `HM`
| E               | `Bh`
| END             | `HR`
| ENTER           | `HF`
| EQUAL           | `BZ`
| ESCAPE          | `HE`
| F               | `Bi`
| F1              | `IC`
| F10             | `IL`
| F11             | `IM`
| F12             | `IN`
| F13             | `IO`
| F14             | `IP`
| F15             | `IQ`
| F16             | `IR`
| F17             | `IS`
| F18             | `IT`
| F19             | `IU`
| F2              | `ID`
| F20             | `IV`
| F21             | `IW`
| F22             | `IX`
| F23             | `IY`
| F24             | `IZ`
| F25             | `Ia`
| F3              | `IE`
| F4              | `IF`
| F5              | `IG`
| F6              | `IH`
| F7              | `II`
| F8              | `IJ`
| F9              | `IK`
| G               | `Bj`
| GRAVE ACCENT    | `CY`
| H               | `CA`
| HOME            | `HQ`
| I               | `CB`
| INSERT          | `HI`
| J               | `CC`
| K               | `CD`
| KP 0            | `Ig`
| KP 1            | `Ih`
| KP 2            | `Ii`
| KP 3            | `Ij`
| KP 4            | `JA`
| KP 5            | `JB`
| KP 6            | `JC`
| KP 7            | `JD`
| KP 8            | `JE`
| KP 9            | `JF`
| KP ADD          | `JK`
| KP DECIMAL      | `JG`
| KP DIVIDE       | `JH`
| KP ENTER        | `JL`
| KP EQUAL        | `JM`
| KP MULTIPLY     | `JI`
| KP SUBTRACT     | `JJ`
| L               | `CE`
| LEFT            | `HL`
| LEFT ALT        | `JS`
| LEFT BRACKET    | `CT`
| LEFT CONTROL    | `JR`
| LEFT SHIFT      | `JQ`
| LEFT SUPER      | `JT`
| M               | `CF`
| MINUS           | `BJ`
| N               | `CG`
| NUM LOCK        | `He`
| O               | `CH`
| P               | `CI`
| PAGE DOWN       | `HP`
| PAGE UP         | `HO`
| PAUSE           | `Hg`
| PERIOD          | `BK`
| PRINT SCREEN    | `Hf`
| Q               | `CJ`
| R               | `CK`
| RIGHT           | `HK`
| RIGHT ALT       | `JW`
| RIGHT BRACKET   | `CV`
| RIGHT CONTROL   | `JV`
| RIGHT SHIFT     | `JU`
| RIGHT SUPER     | `JX`
| S               | `CL`
| SCROLL LOCK     | `Hd`
| SEMICOLON       | `BX`
| SLASH           | `BL`
| SPACE           | `g`
| T               | `CM`
| TAB             | `HG`
| U               | `CN`
| UP              | `HN`
| V               | `CO`
| W               | `CP`
| WORLD 1         | `ER`
| WORLD 2         | `ES`
| X               | `CQ`
| Y               | `CR`
| Z               | `CS`

|===
