Here's a list of keycodes that includes a way to look them up interactively.

Answer from Pablo on Stack Overflow
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › win32 › inputdev › virtual-key-codes
Virtual-Key Codes (Winuser.h) - Win32 apps | Microsoft Learn
Access to this page requires authorization. You can try changing directories. ... The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system.
🌐
Keyjs
keyjs.dev
Key.js \ JavaScript keyboard event key codes & key identifiers
👇 Press any key to see JavaScript e.key, e.code, e.which, e.keyCode and more key codes and characters. Better than keycode.info!
🌐
Toptal
toptal.com › developers › keycode
JavaScript Key Code Event Tool | Toptal®
KeyCode.Info allows users to press any key and instantly get the JavaScript Key or Key Code KeyboardEvent. Check out the Tool and Event List.
🌐
ForeUI
foreui.com › articles › Key_Code_Table.htm
Key Code Table
Provide the list of key code that can be used in condition express.
🌐
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
These keycodes are not part of the Keyboard/Keypad usage page. The SYSTEM_ keycodes are found in the Generic Desktop page, and the rest are located in the Consumer page. ... Some of these keycodes may behave differently depending on the OS. For example, on macOS, the keycodes KC_MEDIA_FAST_FORWARD, ...
Find elsewhere
🌐
Toptal
toptal.com › developers › keycode › table
JavaScript Key Code List & Table | Toptal®
Easily find every JavaScript Key Code in one table. Get started now.
🌐
Netlify
keycode-visualizer.netlify.app
KeyCode Tester
Page built with Bulma CSS - App inspired by Wes Bos
🌐
Alt Codes
alt-codes.net
Alt Codes List of Alt Key Codes Symbols
Alt Codes, the all alt codes list for special characters and special symbols. Learn how to use alt key codes.
🌐
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 - The following table lists all keys on a typical U.S. English keyboard and their corresponding key codes. ... O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement. ... I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Author   Danny Goodman
Published   2007
Pages   603
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › system.windows.forms.keys
Keys Enum (System.Windows.Forms) | Microsoft Learn
For finer control, use the Windows API functions GetKeyState, GetAsyncKeyState, or GetKeyboardState defined in user32.dll, to do this. For more information about calling native functions, see Consuming Unmanaged DLL Functions. The following table shows the key code values represented by two enumerated values, representing both the general original equipment manufacturer (OEM) keys and the more specific U.S.-keyboard associations.
🌐
Saas-secure
saas-secure.com › online-services › keyboard-codes.html
Find keyboard codes with our key tester - SaaS-Secure.com
Press any key while the input is focused to see the keyCode that the browser reports and compare it to the table. Key capture ... Works for navigation, media, and modifier keys. Numbers and letters always match their standard ASCII codes.
🌐
CSS-Tricks
css-tricks.com › snippets › javascript › javascript-keycodes
KeyboardEvent Value (keyCodes, metaKey, etc) | CSS-Tricks
September 22, 2022 - When a KeyboardEvent fires, you can test which key was pressed because that event contains information you can write logic against. document.addEventListener("keydown", function(event) { console.log(event.which); }) For example, by pressing a, you’ll get 65. Apparently it’s best to write logic against which, as keyCode and charCode are complicated:
🌐
Processing
processing.org › reference › keycode
keyCode / Reference / Processing.org
The variable keyCode is used to detect special keys such as the UP, DOWN, LEFT, RIGHT arrow keys and ALT, CONTROL, SHIFT. When checking for these keys, it can be useful to first check if the key is coded. This is done with the conditional if (key == CODED), as shown in the example above.
🌐
Ask LibreOffice
ask.libreoffice.org › english
Number codes for keyboard keys - English - Ask LibreOffice
February 19, 2024 - Can someone direct me to where I find the KeyChar number codes? For example the ESCAPE key is chr(27). I like to know the numbers for the other keys on the keyboard but I cannot find them anywhere.
🌐
ZMK
zmk.dev › docs › keymaps › list-of-keycodes
List of Keycodes | ZMK Firmware
This is the reference page for keycodes used by behaviors. Use the table of contents (on the right or the top) for easy navigation.