By Team Edtoolkits · Developer
Press any key to see its event.key, event.code, keyCode and which values, with modifiers and a ready-to-use snippet. An on-screen keyboard works on phones.
Use the guide alongside the working tool.
Open JavaScript Key Code Finder →Get started
Click the box and press a key, or tap a key on the on-screen keyboard.
Adjust and explore
Read key, code, keyCode, which and the modifiers.
Save and share
Copy the snippet into your code.
Privacy and limits
Values on the on-screen keyboard follow a standard US layout; a real keyboard reports what your layout and browser send. Phone keyboards often report keyCode 229. The page cannot see keys the system keeps, such as Alt+Tab. Your keystrokes stay on your device.
Ready to apply this workflow?
Try JavaScript Key Code Finder →Explore a related workflow
- Regular Expression Tester: examples and practical limits
Test JavaScript patterns and inspect match positions and capture groups.
- JSONPath Explorer: examples and practical limits
Select JSON values with paths, indexes, wildcards and recursive descent.
- JSON Pointer Resolver: examples and practical limits
Resolve RFC 6901 pointers and show the exact selected JSON value.
- Structural JSON Diff: examples and practical limits
Compare JSON by structure and inspect added, removed and changed paths.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.