Here's a list of keycodes that includes a way to look them up interactively.
Answer from Pablo on Stack Overflowasawicki.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
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!
Top answer 1 of 4
8
You can simply create a HTML to do so.
- Copy & paste the following code into a new HTML file, say
keycode.html. - Open it with a browser.
- Press a key. A prompt with key code would appear.
<html>
<script>
document.onkeydown = function(e) {
if (!e) var e = window.event;
if (e.keyCode) keycode = e.keyCode;
else if (e.which) keycode = e.which;
alert(keycode);
}
</script>
<body>
</body>
</html>
2 of 4
3
Online tool: keycode.info
- Visit https://keycode.info/
- Press any key to get the keycode
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, ...
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.
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:
Top answer 1 of 12
21
$(function () {
$(document).keyup(function (e) {
console.log(e.keyCode);
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Here's your online tool.
2 of 12
5
Just googled and result
function displayunicode(e) {
var unicode = e.keyCode ? e.keyCode : e.charCode;
console.log(unicode);
}
<form>
<input type="text" size="2" maxlength="1" onkeyup="displayunicode(event); this.select()" />
</form>
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.