Screen, viewport, preferences and supported web features of this browser
Keyboard Event Tester
See exactly what the browser reports for each key, so your shortcuts work on every layout.
Loading tool…
How to use keyboard event tester
Click or tap the box to focus it.
Press a key or a combination such as Ctrl+Shift+K.
Read key, code, keyCode, location, repeat and modifiers.
Copy the shortcut in Mac or Windows style, or the JavaScript handler for that exact combination.
What this tool does
- Shows the layout-aware event.key next to the physical event.code.
- Tells left and right modifiers and numpad keys apart through event.location.
- Lists every key held at once, which shows keyboard rollover limits.
- Keeps a log of keydown and keyup events with timestamps.
How the result is verified
Values are taken straight from the browser's KeyboardEvent, so they are what your own code will receive in this browser.
Frequently asked questions
Should I use event.key or event.code?
Use event.code for physical positions, such as WASD controls that should not move on an AZERTY keyboard. Use event.key for shortcuts tied to a letter, such as Ctrl+S.
Is keyCode still safe to use?
It still works but is deprecated and inconsistent across layouts. It is shown here for old code you may be maintaining.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Read browser, engine, OS, device and bot from a User-Agent string
Send GET, POST, PUT, PATCH and DELETE requests from your browser
Explain cron schedules in plain English and preview the next 10 runs