Keyboard Tester

Press any key to see its name, code and keyCode — test every key on your keyboard.

How to use

  1. Focus the page and press any key.
  2. The key name, code and legacy keyCode appear.
  3. Use it to test every key on a new or repaired keyboard.

About this tool

A keyboard tester shows which key the browser receives when you press something. It displays the modern key (what the character is), the code (the physical key location) and the legacy keyCode (a numeric identifier used by older software).

This is useful for testing a new keyboard, diagnosing stuck or unresponsive keys, and verifying that a keyboard layout matches what the OS reports.

Everything runs in the browser — no software to install, no drivers needed. The page listens for keydown events and displays the result instantly.

Frequently asked questions

Does it detect modifier keys?

Yes — Shift, Ctrl, Alt and Meta (Windows/Command) all register as keydown events.

Why are two keys showing the same keyCode?

KeyCode is a legacy API and some keys share the same value. Use the code property for reliable physical key identification.

Does my data leave the browser?

No. Everything runs locally in JavaScript on your device — nothing is transmitted or stored.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.