![]() |
VOOZH | about |
This page is detailing keys that controls can be bound to in the latest version of Java Edition, but which are not explicitly named in-game (see MC-170376). Hardware and operating system specifics are listed accordingly.
Note that the key must be explicitly tested in Java Edition and the lack of a proper name confirmed for inclusion in this list.
Cases where a single, nonstandard key causes scancode.### to be displayed when any control is bound to it.
scancode.256 on Windows appears to be a generic fallback for several unrecognized keyboard inputs, and as such many different unrelated inputs can cause this to appear. This appears to arise from a bug in GLFW, which may be fixed at some point in the future.[1] The following is a list of known examples from single buttons:
| Key | Keyboard | Computer | JE version | Windows version | Notes |
|---|---|---|---|---|---|
| Browser[2] | [keyboards 3] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 3] |
| [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | ||
| Calculator[2] | [keyboards 3] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 4] |
| Computer(?) | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 3] |
| E-mail[2] | [keyboards 3] | [wincomputers 1] | 1.20.2 | [winver 1] | |
| [keyboards 4] | [wincomputers 1] | 1.20.2 | [winver 1] | ||
| [keyboards 3] | [wincomputers 2] | 1.20.2 | [winver 1] | ||
| [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] |
Cases where specific key combinations cause scancode.### to appear, or keys that would otherwise have named bindings causing scancode.### to appear when another key (e.g. F Lock) is in a certain state.
It may be Mojang's intention to not fix cases where the exact same key in the exact same position can put out different codes, and that the same key should always give the same in-game behavior (for example, you cannot bind a control to @ by holding shift and then binding something to the 2 key, so it might be intended that the F2 key would always bind F2 regardless of whether the Fn key is held or not).
For much the same reason as the prior section, key combinations can also result in controls being bound to this specific code.
| Combo | Function | Keyboard | Computer | JE version | Windows version | Notes |
|---|---|---|---|---|---|---|
| + | Media | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 3] |
| + | Volume Down | [keyboards 4] | [wincomputers 1] | 1.20.2 | [winver 1] | |
| [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | |||
| + | Volume Up | [keyboards 4] | [wincomputers 1] | 1.20.2 | [winver 1] | |
| [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | |||
| + | Mute | [keyboards 4] | [wincomputers 1] | 1.20.2 | [winver 1] | |
| [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | |||
| + | Stop | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 5] |
| + | Previous Track | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 6] |
| + | Play/Pause | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 7] |
| + | Next Track | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 8] |
| + | [keyboards 4] | [wincomputers 1] | 1.20.2 | [winver 1] | ||
| [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | |||
| + | Browser | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 3] |
| + | Calculator | [keyboards 4] | [wincomputers 2] | 1.20.2 | [winver 1] | [note 4] |
evdev, which is used by Linux for keyboard inputs, is also used by FreeBSD.
The windowing system may affect the keycodes produced, although both X and Wayland use xkb so this is unlikely to be relevant. The kernel build could also affect these, but this is even less likely to be an issue.
For some specific keyboards, according to evtest, only a "scan" event is sent for some rare keys - no "key" event is sent. This is likely a bug with the Linux kernel itself - a report for this is planned.
| Displayed name | USB usage | Keyboard | JE version | OS | Notes | ||
|---|---|---|---|---|---|---|---|
| Page | Name | ID | |||||
| scancode.107 | Keyboard/Keypad | Keyboard PrintScreen | 70 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.120 | [keyboards 1] | 1.20.2 | [linver 1] | ||||
| scancode.121 | Keyboard/Keypad Consumer |
Keyboard Mute Mute |
127 226 |
[keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.122 | Keyboard/Keypad Consumer |
Keyboard Volume Down Volume Decrement |
129 234 |
[keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.123 | Keyboard/Keypad Consumer |
Keyboard Volume Up Volume Increment |
128 233 |
[keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.124 | Keyboard/Keypad Consumer |
Keyboard Power Power |
102 48 |
[keyboards 2] | 1.20.2 | [linver 1] | [note 10] |
| scancode.133 | Keyboard/Keypad | Keyboard Left GUI | 227 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.136 | Keyboard/Keypad Consumer |
Keyboard Stop AC Stop |
120 550 |
[keyboards 2] | 1.20.2 | [linver 1] | |
| scancode.139 | Keyboard/Keypad Consumer |
Keyboard Undo AC Undo |
122 538 |
[keyboards 7] | 1.20.2 Release Candidate 1 | [linver 3] | |
| scancode.143 | Keyboard/Keypad Consumer |
Keyboard Paste AC Paste |
125 541 |
[keyboards 7] | 1.20.2 Release Candidate 1 | [linver 3] | |
| scancode.145 | Keyboard/Keypad Consumer |
Keyboard Cut AC Cut |
123 540 |
[keyboards 7] | 1.20.2 Release Candidate 1 | [linver 3] | |
| scancode.148 | Consumer | AL Calculator | 402 | [keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 3] | 1.20.2 | [linver 1] | |||||
| scancode.150 | Consumer Consumer |
Sleep Sleep Mode |
50 52 |
[keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 3] | 1.20.2 | [linver 1] | |||||
| scancode.151 | [keyboards 2] | 1.20.2 | [linver 1] | ||||
| scancode.152 | Consumer Consumer |
AL File Browser AL Local Machine Browser |
436 404 |
[keyboards 4] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.163 | Consumer | AL Email Reader | 394 | [keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 3] | 1.20.2 | [linver 1] | |||||
| [keyboards 4] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.164 | Consumer Consumer |
AL Programmable Button Configuration AC Bookmarks |
386 554 |
[keyboards 2] | 1.20.2 | [linver 1] | |
| scancode.165 | [keyboards 2] | 1.20.2 | [linver 1] | ||||
| scancode.166 | Consumer | AC Back | 548 | [keyboards 2] | 1.20.2 | [linver 1] | |
| scancode.167 | Consumer | AC Forward | 549 | [keyboards 2] | 1.20.2 | [linver 1] | |
| scancode.171 | Consumer | Scan Next Track | 181 | [keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.172 | Consumer | Play/Pause | 205 | [keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| [keyboards 8] | 1.20.2 | [linver 4] | |||||
| scancode.173 | Consumer | Scan Previous Track | 182 | [keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.174 | Consumer | Stop | 183 | [keyboards 1] | 1.20.2 | [linver 1] | [note 10] |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| [keyboards 8] | 1.20.2 | [linver 4] | |||||
| scancode.179 | Consumer | AL Consumer Control Configuration | 387 | [keyboards 6] | 1.20.2 | [linver 2] | |
| scancode.180 | Consumer | AC Home | 547 | [keyboards 1] | 1.20.2 | [linver 1] | |
| [keyboards 2] | 1.20.2 | [linver 1] | |||||
| [keyboards 3] | 1.20.2 | [linver 1] | |||||
| [keyboards 4] | 1.20.2 | [linver 1] | |||||
| [keyboards 6] | 1.20.2 | [linver 2] | |||||
| scancode.181 | Consumer | AC Refresh | 551 | [keyboards 2] | 1.20.2 | [linver 1] | |
| scancode.191 | Keyboard/Keypad | Keyboard F13 | 104 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.192 | Keyboard/Keypad | Keyboard F14 | 105 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.193 | Keyboard/Keypad | Keyboard F15 | 106 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.194 | Keyboard/Keypad | Keyboard F16 | 107 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.195 | Keyboard/Keypad | Keyboard F17 | 108 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.196 | Keyboard/Keypad | Keyboard F18 | 109 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.197 | Keyboard/Keypad | Keyboard F19 | 110 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.202 | Keyboard/Keypad | Keyboard F24 | 115 | Unknown | 1.15.2 | Unknown | [note 9] |
| scancode.225 | Consumer | AC Search | 545 | [keyboards 2] | 1.20.2 | [linver 1] | [note 10] |
| scancode.234 | [keyboards 1] | 1.20.2 | [linver 1] | [note 10] | |||
| [keyboards 2] | 1.20.2 | [linver 1] | |||||