显示与输入

键盘测试

测试键盘上的每个按键,查看实时按键代码和修饰符,并检测意外粘连或重复的按键。

隐私: 仅显示关键标识符。键入的文本不会被捕获、存储或上传,密码字段也不会成为目标。
界面标签和工具名称已翻译。此页面上的详细指南和常见问题解答目前以英文编写。

测试接口

按“开始”后,您的浏览器可能会请求许可。
先点击测试区域,使其能够接收键盘事件。
0%
测试过的按键0
按键总数0
重复事件0
修饰符—
最后一把钥匙: — — —
该测试使用物理键代码,因此它可以跨键盘布局工作。某些媒体、功能和供应商密钥不会向网页公开。从不突出显示的键可能会被浏览器或操作系统阻止。

如何使用这个工具

  1. Click inside the test area so it receives keyboard focus.
  2. Press keys one at a time and watch them light up on the layout.
  3. Check the key code, location, and modifier status for each press.
  4. Use Reset to clear tested keys or change the layout if needed.

广告

技术说明

The page listens for keydown and keyup events and reads event.code, event.key, event.location, and modifier flags. event.code describes the physical key position; event.key reflects the character produced, which varies with layout and modifiers.

The test never reads input from other applications and cannot see keys pressed while the page is not focused. It also cannot inspect a keyboard at the firmware level.

故障排除

A key does not highlight

Click the test area first, then try the key again. Browser shortcuts may be intercepted before the page receives them.

Wrong character appears

The operating-system keyboard layout may differ from the layout shown. Switch layouts or use the key-code display.

Keys repeat

Check the operating-system repeat settings. A stuck key usually repeats even after release; a hardware fault may require service.

Media keys do nothing

Many media and function keys are handled by the operating system and never reach the browser.

常见问题

广告