A quick utility to double check the key codes and modifies for common input devices using WebAPI's.
- Keyboard/HID/Gamepad support usingWebAPI's
- Shows modifiers alt/meta/control/shift
- Shows keycode
- Displays connected device details
- Open
index.htmllocally orhttps://ylanallouche.github.io/web-input-tester/in a web browser - Select your input type from the tabs (HID, Gamepad, or Keyboard)
- For HID: Click "Connect HID Device" to select a USB device
- Monitor incoming input events in the log panel
- Use "Clear Log" to reset the display
src/
├── app.js # Entrypoint
├── handlers/ # Handlers
│ ├── hidHandler.js # HID device
│ ├── gamepadHandler.js # Gamepad API
│ └── keyboardHandler.js # Keyboard event
└── utils/
└── logger.js # Shared logging utility
css/
└── style.css
index.html # Invoking
Requires a modern browser with support for:
- WebHID API (for USB device support)
- Gamepad API
- ES6 modules
MIT © 2026 ALLOUCHE Ylan