Here's a list of keycodes that includes a way to look them up interactively.
Answer from Pablo on Stack OverflowMicrosoft Learn
learn.microsoft.com › en-us › windows › win32 › inputdev › virtual-key-codes
Virtual-Key Codes (Winuser.h) - Win32 apps | Microsoft Learn
The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.
ForeUI
foreui.com › articles › Key_Code_Table.htm
Key Code Table
Provide the list of key code that can be used in condition express.
asawicki.info
asawicki.info › nosense › doc › devices › keyboard › key_codes.html
Key codes
Here are some codes of keyboard keys.
Top answer 1 of 3
56
Here's a list of keycodes that includes a way to look them up interactively.
2 of 3
7
I know this was asked awhile back, but I found a comprehensive list of the virtual keyboard key codes right in MSDN, for use in C/C++. This also includes the mouse events. Note it is different than the javascript key codes (I noticed it around the VK_OEM section).
Here's the link:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
ZMK
zmk.dev › docs › keymaps › list-of-keycodes
List of Keycodes | ZMK Firmware
Keyboard vs. Consumer keycodes · In the below tables, there are keycode pairs with similar names where one variant has a K_ prefix and another C_.
Cherrytree
cherrytree.at › misc › vk.htm
Virtual-Key Codes - Cherry Tree
The following table shows the symbolic constant names, decimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system.
Tecgraf
tecgraf.puc-rio.br › iup › en › attrib › key.html
Keyboard Codes
The table below shows the IUP codification of common keys in a keyboard. Each key is represented by an integer value, defined in the "iupkey.h" file header, which should be included in the application to use the key definitions. These keys are used in K_ANY and KEYPRESS_CB callbacks to inform ...
O'Reilly
oreilly.com › library › view › javascript-dhtml › 9780596514082 › apb.html
B. Keyboard Key Code Values - JavaScript & DHTML Cookbook, 2nd Edition [Book]
August 8, 2007 - 15.0. Introduction15.1. Displaying a Random Aphorism15.2. Converting a User Selection into an Arbitrary Element15.3. Automating the Search-and-Replace of Body Content15.4. Designing a User-Editable Content Page15.5. Creating a Slide Show15.6. Auto-Scrolling the Page15.7. Greeting Users with Their Time of Day15.8. Displaying the Number of Days Before Christmas15.9. Displaying a Countdown Timer15.10. Creating a Calendar Date Picker15.11. Displaying an Animated Progress Bar ... Key codes are numeric values that correspond to physical keys on the keyboard but do not necessarily correspond to a particular character.
Author Danny Goodman
Published 2007
Pages 603
Ivanti
help.ivanti.com › wl › help › en_US › Velocity › 2.0.7 › admin › keyboardCodes.htm
Keyboard Codes and Commands
This page refers to an older version of the product.View the current version of the User Guide. The Velocity Console uses the following keyboard codes to represent keypresses in scripts, macros, or commands. These must be entered in the format presented under the Named Value or Hex Value columns ...
W3C
w3.org › 2002 › 09 › tests › keys.html
Keyboard Events and Codes
Enter some text with uppercase and lowercase letters:
QMK
docs.qmk.fm › keycodes_basic
Basic Keycodes | QMK Firmware
The basic set of keycodes are based on the HID Keyboard/Keypad Usage Page (0x07) with the exception of KC_NO, KC_TRNS and keycodes in the 0xA5-DF range.
C64-Wiki
c64-wiki.com › wiki › Keyboard_code
Keyboard code - C64-Wiki
If no key was pressed, the scan routine will report a "key code" of 64/$40, and if more than one of the keys which have a key code is pressed, the one with the highest key code will take precedence. Note the four unused codes; 15/$0F, 52/$34, 58/$3A, and 61/$3D: Internally in the ROM routines handling the keyboard, these codes represent the Shift, Commodore and Ctrl keys.
GLFW
glfw.org › docs › 3.3 › group__keys.html
GLFW: Keyboard key tokens
These key codes are inspired by the USB HID Usage Tables v1.12 (p. 53-60), but re-arranged to map to 7-bit ASCII for printable keys (function keys are put in the 256+ range). ... Names of printable alpha-numeric characters are used (e.g.
Rhydolabz
rhydolabz.com › documents › Hex Table for key board decoder.pdf pdf
Standard QWERTY Keyboard Decoder Key HEX Value • Esc 1B • F1- F12 F1-FC •
Standard QWERTY Keyboard Decoder · Key · HEX Value · • · Esc · 1B · • · F1- F12 · F1-FC · • · Prnt. Scr · 00 · • · Scrl Lck · Null · • · P/B · 00 · ------------------------------------------------------------------------------------------------------------------------ ...
Toptal
toptal.com › developers › keycode › table
JavaScript Key Code List & Table | Toptal®
Easily find every JavaScript Key Code in one table. Get started now.
DocStore
docstore.mik.ua › orelly › webprog › DHTML_javascript › 0596004672_jvdhtmlckbk-app-b.html
Appendix B. Keyboard Key Code Values
Key codes are numeric values that correspond to physical keys on the keyboard but do not necessarily correspond to a particular character. For example, the A key on the keyboard produces the same key code when pressed, even though its character code might be 65 (uppercase A) or 97 (lowercase ...
Tue
aeb.win.tue.nl › linux › kbd › scancodes-1.html
Keyboard scancodes: Keyboard scancodes
Most keyboards will repeat the make code (key down code) when the key repeats. Some will also fake Shift down and Shift up events during the repeat. The keys PrtSc/SysRq and Pause/Break are special. The former produces scancode e0 2a e0 37 when no modifier key is pressed simultaneously, e0 37 together with Shift or Ctrl, but 54 together with (left or right) Alt.
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › system.windows.forms.keys
Keys Enum (System.Windows.Forms) | Microsoft Learn
The Keys class contains constants for processing keyboard input. The members of the Keys enumeration consist of a key code and a set of modifiers combined into a single integer value.
Bohemia Interactive Community
community.bistudio.com › wiki › DIK_KeyCodes
DIK KeyCodes - Bohemia Interactive Community
February 13, 2026 - Each key on any keyboard has a unique Direct Input Keyboard (DIK) code. They are not character symbols. They refer to the position of the key on the keyboard. In other words, depending on the keyboard layout, the actual key can change, but its position is always identical.