Developer
JavaScript Key Code Finder
Press a key, or tap one on the on-screen keyboard, to see its JavaScript values.
Preparing tool
How to use JavaScript Key Code Finder
- Click the box and press a key, or tap a key on the on-screen keyboard.
- Read key, code, keyCode, which and the modifiers.
- Copy the snippet into your code.
What are the limits of JavaScript Key Code Finder?
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.