Free Online Keyboard Tester
Check every key and see its code, key, and location.
Key history
Pressed keys will appear here.
F5, F11, and F12 are left to the browser so you can still refresh or open developer tools.
About the Keyboard Tester
This keyboard tester shows exactly what your browser receives when you press a key. For every keydown and keyup it reports the key value, the physical code, the key's location, whether the event is a repeat, and which modifier keys are held. It is useful for checking a new keyboard, diagnosing a sticky key, confirming that a key registers at all, or learning how keyboard events are represented in web applications.
key versus code
The key value describes what the key produces in the current layout and modifier state. Pressing the A key normally reports a; with Shift it reports A. The code value describes the physical position on the keyboard, such as KeyA or Digit1, and does not change when you switch between QWERTY, AZERTY, or Dvorak layouts. That is why games and shortcuts often use code rather than key.
Locations and modifiers
The location field distinguishes the main key area from the left and right modifier clusters and the numeric keypad. This is how the browser tells the left Shift from the right Shift, or the main Enter from the numpad Enter. Modifier badges show Shift, Control, Alt, and Meta at the moment the event fired.
Why some keys cannot be captured
Operating systems reserve certain combinations. Alt+Tab, Ctrl+Alt+Delete, the Windows key, Cmd+Tab, and security-related shortcuts are intercepted before any web page sees them. Function keys may also be claimed by the browser or by hardware. For safety, this tester leaves F5, F11, and F12 to the browser so refresh and developer tools remain available.
Frequently asked questions
Why does a key show a different letter than the one printed on it?
Your operating system keyboard layout determines the key value. The physical code stays the same, but the produced character can change with the layout.
What does repeat mean?
When you hold a key, the browser sends repeated keydown events. The repeat flag is true for those automatic repeats and false for the first press.
Why is my key not detected at all?
The key may be reserved by the operating system, the keyboard may have a hardware fault, or another application may have captured focus. Try another browser or keyboard to isolate the cause.