工具 指南
Developer 免费 无需注册

Keyboard Key Code Tester

Press any key to see its keyCode, key, code, charCode, and more.

正在加载工具…

关于此工具

The Keyboard Key Code Tester captures every key event in your browser and displays full event properties in real time. Press any key — letters, numbers, function keys, modifier keys, arrow keys, or special keys — and instantly see the key name, key code, code string, charCode, which value, Unicode code point, key location, and which modifier flags are active. A scrollable history table keeps the last 20 key presses so you can compare values across multiple keys. This tool is invaluable for JavaScript developers handling keyboard input, accessibility testers, and anyone curious about how browsers represent keyboard events.

使用方法

  1. 1 Click inside the key capture area so it has focus.
  2. 2 Press any key on your keyboard.
  3. 3 Read the key properties displayed in the panel on the right.
  4. 4 Check the history table below for the last 20 key presses.
  5. 5 Use the Clear History button to reset the table.

常见问题

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}