Input Device Tests keyboard input keydown

Keyboard Test

Verify every key press, including modifiers and special keys.

Interactive tool

Run the test

Runs in your browser

Start capture, then press keys. Highlighted keys confirm the browser received the event.

Press Start key capture to begin.

Permission status

Checked in your browser. DeviceHub does not store permission grants.

  • Special permission Not required

Live results

Metrics update as you run the test. Nothing is uploaded.

Loading

Waiting for interactive tool output…

Device information

Labels and capability details reported by your browser.

No device details yet.

Description

About Keyboard Test

Introduction

The DeviceHub Keyboard Test is a free online keyboard check that visualizes every key press inside your browser without downloads, drivers, or accounts. Open the page, click into the interactive area, and press keys while an on-screen US QWERTY reference lights matching switches, including function keys, modifiers, the navigation cluster, arrow keys, and the space bar. The tool listens for standard KeyboardEvent keydown and keyup traffic, the same events web apps and games receive, so a working highlight here is a strong baseline before you blame a single application. Mechanical enthusiasts chasing stuck switches, laptop owners after spills, help-desk technicians, competitive gamers verifying basics before a tournament, students on locked-down school machines, and anyone returning a defective board use it as a neutral first step. Because it runs entirely in the tab, you can test keyboards on Windows, macOS, Linux, or ChromeOS without administrator rights or vendor utilities. Schools and libraries appreciate that nothing needs installing on managed desktops. If you cleaned a board, swapped a wireless dongle, updated the OS, or suddenly lost a cluster of keys in every app, this visual map answers the fundamental question, does the browser see this physical key, in seconds rather than minutes of driver reinstalls. Retail floor staff demoing pre-built PCs also prefer a bookmarkable page over hunting for manufacturer control panels that differ on every SKU.

What this tool does

This tool attaches keyboard listeners to a focused test surface, maps each event’s physical code onto a virtual layout, and highlights keys while they remain down. A live log shows the code string, the character when applicable, and modifier state so you can separate physical position from printed legend, critical when diagnosing layout or language mismatches. Reset clears the board and history so you can start a fresh pass after cleaning or reseating a cable. Status messaging reminds you when focus leaves the page, because keystrokes then go elsewhere and the board appears “dead.” The intent is a complete keyboard smoke test: focus, press, confirm highlight and release, exercise modifiers, then reset. It does not claim to measure debounce firmware, scan-matrix electrical limits, or USB HID report rates; for simultaneous-key behavior use Keyboard Ghosting Test and Keyboard Ghosting Test, and for speed-and-accuracy practice use Typing Test. Side buttons on some gaming boards that emit macros may appear as unexpected codes or nothing at all, that is useful diagnostic information about how the OS remaps them before Chrome or Firefox ever sees them. The virtual board is a reference overlay, not a claim that your hardware is a full-size ANSI board; compact sixty-percent and seventy-five-percent layouts still produce codes for the keys they physically have.

When to use it

Use the Keyboard Test before gaming sessions, coding marathons, remote desktop work, exam platforms, and RMA returns when you need confidence every switch registers outside a single vendor app. Run it after spills or deep cleans, after installing OS updates that change input method editors, after docking a laptop with an external board, and whenever a meeting or IDE shortcut “does nothing” while other keys feel fine. IT teams can ask users to open this page so both sides share a common baseline outside proprietary keyboard software. Retail staff demoing floor models can show dead keys without loading manufacturer utilities. Parents helping kids with school Chromebooks use it to confirm the built-in board before an exam locks input. If you only need multi-key ghosting, simultaneous-key counts, or WPM accuracy, jump to those specialized input tools; start here when you need human-readable proof that individual presses light the matching key. Call-center supervisors also bookmark this page as a shared triage link when agents report intermittent keys across softphones and browsers. Freelance writers validating a travel keyboard before a deadline week should run a full alphabet and modifier pass once after unpacking from luggage.

How it works

On focus, the page listens for keydown and keyup (and related keyboard events where helpful) and reads KeyboardEvent.code for physical position plus KeyboardEvent.key for the character the current layout produces. The on-screen board is a US QWERTY reference; codes still arrive from AZERTY, QWERTZ, or Dvorak hardware, which is how layout confusion becomes visible. Highlight state tracks pressed keys until keyup or a reset. Some browser and OS shortcuts, F5 refresh, Ctrl+W close tab, Alt+Tab, never fully reach the page or navigate away; that is expected platform behavior, not a DeviceHub bug. Remote desktop and virtualization layers can swallow combinations before the guest browser sees them. No Permissions API prompt is required: keyboard events are available to focused documents without microphone or camera grants. Secure HTTPS hosting keeps the rest of DeviceHub consistent, but key listening itself does not need getUserMedia. DeviceHub does not upload keystroke streams; handling stays in tab memory for visualization during the session. Extensions that redefine shortcuts can intercept events before your listeners run, private windows help isolate that class of false negatives. Laptop Fn layers may emit media keys or nothing depending on firmware mode; comparing an external USB board separates chassis firmware from browser quirks. Autorepeat from the OS may fire repeated keydowns for a held key; the highlight still represents a single physical switch until keyup, which keeps the smoke-test mental model simple.

Step-by-step instructions

  1. Open this DeviceHub page over HTTPS in Chrome, Firefox, Edge, or Safari and click the interactive Keyboard Test panel or Start focus control so key events route into the tool rather than the address bar or a neighboring form field.
  2. Press letter, number, and punctuation keys one at a time, confirming each matching key on the virtual board lights on press and clears on release, then glance at the event log for code and character values that match your expectation.
  3. Exercise modifiers, Shift, Ctrl or Control, Alt or Option, and Meta or Command, alone and with a letter, noting any OS-reserved chords that never appear because the system consumed them before the page could listen.
  4. Walk the function row, arrows, navigation cluster, and space bar, watching for dead zones that suggest membrane damage, liquid residue, or a failing wireless link rather than a single-app binding issue in one game or IDE.
  5. Optionally tap a suspect key rapidly to expose intermittent contacts that casual typing might miss, then use Reset to clear highlights and the log before a second clean pass after you reseat the cable or swap batteries.
  6. When finished, click away or close the tab; no permission revoke is required because the tool never requested privileged device access, just avoid typing passwords into the log on shared screens or screen shares.

Common problems

Keys that never light usually mean focus left the tester, a browser or OS shortcut ate the event, a remote desktop session filtered the combination, or the switch itself is dead. Stuck highlights can indicate a physically held key, sticky debris, or a missed keyup after focus changes. Wireless boards with low batteries drop intermittent events that look like random dead keys. Compact laptop layouts hide secondary functions behind Fn, so the printed legend may not match the code the browser reports. IME composition for non-Latin input can alter key sequences mid-test, finish or cancel composition before diagnosing. If everything works here but fails in one game, investigate that game’s exclusive raw-input path or overlay next. Extension shortcut managers are a frequent false alarm; disable them temporarily. KVM switches occasionally drop certain modifiers until you toggle the hotkey that releases keyboard control back to the PC. Virtual machines with USB passthrough may remap media keys differently than the host OS, so compare host versus guest before concluding the hardware failed.

Privacy explanation

Keyboard events stay entirely on your device during this test. DeviceHub does not upload keystrokes, build typing profiles, or store your log on a server. The on-page log exists only for the current session and clears when you reset or leave. No microphone, camera, or HID device permission is requested. Avoid entering passwords, recovery codes, or personal messages while the log is visible on a shared display. Closing the tab ends listeners for that page; nothing continues in the background. Clearing cookies does not affect key testing because no privileged grant was stored. Prefer a private window if you are diagnosing extension conflicts without changing your everyday profile. Screen recordings shared with support should crop or blur any accidental desktop content outside the tester.

Runtime principles

Built for the browser

What happens when you run this test — without downloads or accounts.

  1. 01

    Runs in your browser

    Keyboard Test uses standard web APIs — no install, extension, or desktop app required.

  2. 02

    Reads what the browser allows

    Results come from events and capability signals the web platform exposes for this session.

  3. 03

    Private by default

    Input and diagnostic values stay in your browser session for display — nothing is sold as media.

Compatibility

Supported browsers

Expected support for modern engines. Individual APIs may still vary by device.

  • Chrome

    supported

    Latest stable

  • Firefox

    supported

    Latest stable

  • Safari

    supported

    Latest stable

  • Edge

    supported

    Latest stable

Devices

Supported devices

Hardware and form factors this browser test is designed to exercise.

  • Physical keyboards

    Best results with hardware keydown/keyup events.

  • Mice & trackballs

    Buttons, wheel, and pointer tracking in the page.

  • Trackpads

    Click and scroll events from laptop trackpads.

Privacy

Your data stays with you

Keyboard Test is built privacy-first. Diagnostics run in your browser session whenever web APIs allow.

Read our privacy policy

Troubleshooting

Common problems

Quick fixes before you dig into FAQs.

Some keys never highlight
Click back into the test area so focus returns, try another browser profile without shortcut-heavy extensions, and retest the same key on a second keyboard if available.
A key stays lit after release
Press the key again to clear a stuck highlight, check for debris under the switch, and compare behavior in a private window to rule out extension interference.
Modifiers or function keys do nothing
OS-reserved shortcuts and laptop Fn layers may never reach the page. Test the same key in Keyboard Ghosting Test and Keyboard Ghosting Test, then try an external keyboard.

FAQ

Frequently asked questions

Structured answers for users and FAQ rich results.

Browse FAQs
Does the keyboard test work on mobile?
Physical keyboards work best. On-screen mobile keyboards may not expose the same keydown/keyup events as hardware keys.
Do I need to install anything?
No. The tester listens for standard browser keyboard events with no downloads or drivers.
Why do some keys not light up?
Browser shortcuts, OS hotkeys, or stuck hardware can prevent events from reaching the page. Try another browser and compare results.
Can I test Ctrl, Alt, and Windows/Command keys?
Yes. Modifier keys are highlighted when the browser reports them. Some OS-reserved combinations never reach web pages.
Is my typing sent to a server?
No. Key events are handled locally in the page to update the visual board and log. Nothing is uploaded.
Does layout matter (QWERTY vs AZERTY)?
The on-screen board is a US QWERTY reference. Detection uses physical key codes, which helps diagnose layout mismatches.

Newsletter

Updates coming soon

A lightweight email digest for new tools and release notes is planned. No signup form is live yet — check Release Notes for product updates.

Release notes

Need another diagnostic after Keyboard Test?

Explore related DeviceHub tools that pair well with this test.