⌨️
Key Code Finder
Press any key on your keyboard to see its event codes. Displays keyCode, which, key, and code values for JavaScript keyboard event handling.
Frequently Asked Questions
What is the difference between key, code, and keyCode?
key: the character produced (e.g., "a"). code: the physical key (e.g., "KeyA"). keyCode: the legacy numeric code (deprecated but widely used). which: similar to keyCode.
Which property should I use?
Use event.code for physical key position (keyboard layout independent) and event.key for the character produced. Avoid keyCode as it is deprecated.
Related Tools
How to Use
- 1 Press any key on your keyboard.
- 2 View the event properties: key, code, keyCode, and which values.
- 3 Use event.code for physical key position (layout-independent).
- 4 Use event.key for the character produced.