Keyboard Debounce & Key Visualizer automatically discards duplicate key presses caused by keyboard chatter, and adds a set of desktop tools: target keyboard, key blocking, an on-screen keyboard, and a key-visualization desktop pet. Available for Windows and macOS.
Download: https://github.com/singcl/keyboard-plus/releases/latest
Changelog: CHANGELOG.md
After a while, a new keyboard started to chatter: one press, multiple responses, typos everywhere.
Windows Filter Keys could not fix it, and the keyboard was past its return window. So this program was born: it swallows "the same key pressed again within a very short interval" at the system level, while still allowing normal typing and the auto-repeat from holding a key.
This project is based on garfeng/keyboard (MIT). The original author wrote the first version in C++; this repository was later rewritten in Go and then in Rust, gradually adding interception logs, device detection with a target keyboard, key blocking, and the key-visualization desktop pet.
The screenshots show the English UI; on Windows the interface can also be switched to Chinese or Japanese (see Appearance → Language below).
![]() Tray panel |
![]() Interception log ![]() Desktop pet ![]() Theme color |
![]() Debounce threshold ![]() Blocked keys · On-screen keyboard ![]() Target keyboard |

Keyboard test (Advanced edition)
| Area | Capability |
|---|---|
| Debounce | Global low-level keyboard hook; a key pressed again within the threshold is discarded; auto-repeat from holding a key is passed through |
| Threshold | Presets 100 / 80 / 67 / 50 ms; custom 10–1000 ms |
| Pause | One-click pause / resume from the menu; while paused only debounce is disabled and key blocking stays active; the state persists across restarts |
| Target keyboard | Detects brand, VID/PID and device path; choose a target keyboard; debounce only while it is online, pausing and resuming automatically |
| Block keys | Pick keys on a 104-key on-screen keyboard, or capture "the next key pressed"; both key-down and key-up are swallowed and no app receives them |
| Keyboard test (Advanced) | Pick a brand/model or a layout: 36 popular models with search over a wider catalogue (Filco, Leopold, HHKB, Keychron, Ducky, Dareu, AULA, AJAZZ, MCHOSE and more) switch the layout automatically, or choose one of 28 layouts (the layout list supports search and prompts you to keep typing when results overflow; picking a layout returns to Custom); check every key from 108-key full-size to 47-key ortholinear (including 87 WKL, HHKB 60, Planck 47 and Preonic 60), with live highlighting, per-region progress with a per-key mini grid, a current-key card (VK / scan code / region / hold-duration bar), a key-record timeline and reset; suspected chatter (same key down < 80 ms, with a summary of suspect keys) and peak simultaneous keys; the layout scales with DPI and fits the monitor work area; while the window is in front, keys are captured so other apps' shortcuts do not fire, and debounce and blocking pause; both resume when it loses focus. Known limitation: ISO (L-shaped Enter) layouts are not supported yet; the model catalogue can be overridden or extended with %LOCALAPPDATA%\keyboard-plus\models.json (schema example in assets/models.json), and layouts likewise with %LOCALAPPDATA%\keyboard-plus\layouts.json (schema example in assets/layouts.json) |
| Desktop pet | Corner pet (cat / dog / whale girl) with colorful floating keycaps; draggable, edge snapping, adjustable size / opacity, rounded / square keycaps and wide-key font size, privacy mode, auto-hide in fullscreen; optional input stats card (today's keys, live KPM, peak and a 60-second sparkline) and a sedentary reminder |
| Tray and logs | Status line with today's block count; icon style (standard build); 6 menu themes (standard build); autostart; built-in log window; reveal config; about |
| Misc | Single instance; silent update check on startup (standard build); 1 MB log rotation and clearing |
| Feature | Windows | macOS |
|---|---|---|
| Global debounce | ✓ low-level hook WH_KEYBOARD_LL |
✓ CGEventTap |
| Preset / custom threshold | ✓ | ✓ |
| Pause / resume (icon changes color) | ✓ | ✓ |
| Status line and today's block count | ✓ | ✓ |
| Start with system | ✓ Run key | ✓ LaunchAgent |
| View log | ✓ built-in window, refreshes every 2 s | Opens with the default app |
| Reveal config file | ✓ Explorer | ✓ Finder |
| Icon style (keyboard / pulse) | ✓ standard build | ✓ standard build |
| Menu theme (6 presets, standard build) | ✓ | — |
| Check for updates (silent on startup + manual) | ✓ standard build | ✓ standard build |
| Detect keyboard devices | ✓ | — |
| Target keyboard / only when online | ✓ | — |
| Block keys / on-screen keyboard | ✓ | — |
| Desktop pet | ✓ | — |
| Single instance (second launch opens the menu) | ✓ | ✓ |
| Requirements | Windows 10+ (x64) | macOS 10.15+ (Apple Silicon / Intel) |
Note: interception itself is global on every platform. macOS event callbacks do not expose device identity, so there is no device detection, target keyboard, or "only when target keyboard is online" on macOS. Other platforms (such as Linux) are not planned. Log and config paths are listed below.
The macOS build has not been verified on real hardware. The developer has no macOS device; the code only passes CI compilation and unit tests. Interception, the permission flow and menu behavior have not been fully verified on a real machine and may have unknown issues. Feedback is welcome in Issues.
Each platform's release provides two builds, and Windows also has an installer. Artifact names include the version, so <version> below is the release version (for example 2.22.0):
| Build | File name | Notes |
|---|---|---|
| Standard | keyboard-plus-<version>-windows-amd64.zip, keyboard-plus-<version>-macos-universal.zip |
Includes "Check for updates" and contacts api.github.com on startup; no keyboard test |
| Advanced | Windows file name contains -advanced |
Adds the keyboard test window on top of the standard build; everything else is identical |
| Slim | File name contains -slim |
English-only UI with the default theme; no network checks; fixed keyboard icon (no HTTP/TLS code and no second icon); about a quarter of the standard size; no network access |
| Windows installer | keyboard-plus-<version>-windows-amd64-setup.exe |
Admin-free installer for the standard build: fixed install directory, Start Menu and desktop shortcuts, uninstall entry; the portable zip is still available |
Apart from these differences the three builds are identical (Advanced only adds the keyboard test). They share config, logs and autostart, and only one instance runs even if several are installed. Choose Slim for a fully offline setup.
Neither the archives nor the installer are code-signed, so Windows may show a SmartScreen prompt on first run. Compare the download with the SHA256SUMS-windows.txt in the same release before allowing it (see FAQ).
Installer (recommended): run keyboard-plus-<version>-windows-amd64-setup.exe and follow the wizard; no administrator rights are required. It installs to %LOCALAPPDATA%\Programs\keyboard-plus, creates a Start Menu shortcut, and optionally a desktop shortcut and autostart. To upgrade, run the new installer over the existing installation; to remove it, use Settings → Apps. Uninstalling keeps your configuration and logs under %LOCALAPPDATA%\keyboard-plus\.
Portable: unzip keyboard-plus-<version>-windows-amd64.zip and run keyboard-plus.exe. If you move the folder after enabling autostart, the old path is still registered; toggle autostart off and on again from the tray menu.
The app stays in the notification area. A second launch opens the existing instance's menu (the old "already running" dialog is gone). A one-time balloon tip appears on first run.
Unzip and run keyboard-plus; the icon appears in the menu bar.
- On first run, enable the app under System Settings → Privacy & Security → Input Monitoring; otherwise no keys are received. Restart the app after granting permission.
- The app is not code-signed. If macOS says it cannot be opened, click "Open Anyway" under Privacy & Security.
- If the first menu row says "Not active (missing permission)", Input Monitoring permission has not been granted.
Menu labels below match the English UI; on Windows the UI can be switched between Chinese, English, and Japanese.
Status: Running · 12 blocked today
├─ Debounce threshold
│ ├─ 100 ms / 80 ms / 67 ms / 50 ms
│ └─ Custom threshold…
├─ Pause debounce
├─ Start with system
├─ Detect keyboard devices
├─ Debounce only when target keyboard is online
├─ Target keyboard
├─ Block keys (N blocked)
│ ├─ On-screen keyboard…
│ ├─ Block the next key pressed…
│ ├─ Blocked key entries (click to unblock)
│ └─ Clear blocked list
├─ Keyboard test (Advanced)
├─ Desktop pet
│ ├─ Show pet
│ ├─ Privacy mode (letters and digits shown as ●)
│ ├─ Hide when a fullscreen app is active
│ ├─ Character → Cat / Dog / Whale Girl
│ ├─ Size → 50% / 80% / 100% / 120%
│ ├─ Opacity → 100% / 90% / 80% / 60%
│ ├─ Rounded keycaps
│ ├─ Shrink font for wide keys
│ ├─ Merge combo keys
│ └─ Reset position
├─ Appearance
│ ├─ Theme → Coral / Sky / Mint / Violet / Graphite / Black & white
│ ├─ Icon style (standard: keyboard / pulse)
│ └─ Language → Auto / 简体中文 / English / 日本語
├─ View log / Config location / Clear log
├─ Check for updates… (standard)
├─ About…
├─ Version v2.22.0
└─ Exit
The status line shows "Running", "Paused", or "Paused (target keyboard offline)", and appends "N blocked today" when applicable. The tray icon turns from green to coral while paused.
In the Advanced build, left-clicking the tray icon opens the Keyboard test window directly (press Esc or click Close to exit); the standard and slim builds have no keyboard test, so left-click opens the panel menu just like right-click.
Under Appearance → Language you can choose Auto (follow system), 简体中文, English, or 日本語. Auto follows the Windows display language: Chinese systems stay in Chinese, Japanese systems switch to Japanese, everything else switches to English. The choice is saved as lang in config.json and takes effect immediately. The slim build is English-only and hides the Language submenu; the macOS build is Chinese-only for now.
The default is 100 ms. A key pressed again within the threshold (released and pressed again) is treated as chatter and discarded; auto-repeat from holding a key is never intercepted, so holding Backspace or an arrow key still works.
- If chatter is frequent, increase the threshold (for example 150 ms); the trade-off is that rapid repeated presses of the same key are more likely to be treated as chatter.
- If you type fast and rarely chatter, lower it to 50–67 ms.
- Custom thresholds range from 10 to 1000 ms.
"Detect keyboard devices" lists the system's keyboards (brand, VID/PID and device path). Some keyboards share a generic VID/PID; in that case rely on the device name or device path.
After choosing a keyboard under "Target keyboard":
- Enable "Debounce only when target keyboard is online": interception is active only while that keyboard is connected; unplugging it pauses automatically, and other keyboards used alone are unaffected.
- The app checks the online state every 2 seconds; connects/disconnects and automatic pause/resume are written to the log.
- The target is matched by device path, which is bound to the USB port; after moving the keyboard to another port, select it again.
Interception itself is still global: low-level keyboard hooks do not expose the device in their callbacks, and a user-mode program cannot tell which keyboard a key came from. To restrict interception to a specific device you would need a kernel filter driver (such as Interception), which requires administrator rights and driver signing, and loses the portable single-file distribution.
If a key fires out of nowhere (for example, the screenshot tool opens without pressing PrintScreen), debounce cannot help: it only discards duplicate responses, and the first press must pass. Use "Block keys":
- Open "On-screen keyboard…": it covers all 104 keys; click a key to block it and click again to unblock. Blocked keys are highlighted in coral.
- Or click "Block the next key pressed…" and press the key. Press Esc to cancel capture (Esc itself is swallowed during capture).
- Modifiers such as Ctrl / Shift / Alt / Win break many shortcuts, so blocking them asks for confirmation; left and right Ctrl / Shift / Alt are treated as one group and take effect together.
- Once blocked, both key-down and key-up are swallowed; no app receives them, and "Pause debounce" does not affect this.
- The submenu lists up to 10 entries; the rest are managed in the on-screen keyboard. "Clear blocked list" removes them all.
- The blocked list is stored in
blocked_keysinconfig.jsonand persists across restarts.
"Desktop pet → Show pet" puts a program-drawn pet (cat by default) in a screen corner; each key press floats a keycap from its head.
- Keycaps cycle through 6 colors (coral / amber / green / blue / purple / pink); modifiers are always coral. They have a shadow and a top highlight, rise, and fade out.
- "Character" switches between cat / dog / whale girl; "Rounded keycaps", "Shrink font for wide keys" and "Merge combo keys" can be toggled separately.
- Drag the pet with the mouse to move it; the position is written to the config on release. "Reset position" returns it to the bottom-right corner.
- Size 50% / 80% / 100% / 120% and opacity 100% / 90% / 80% / 60% live in the third-level submenu under "Desktop pet".
- "Privacy mode" shows letters and digits as ●, useful for screen recording, casting or streaming; modifiers and function keys keep their names.
- Blocked keys still float a keycap, making it easy to confirm that blocking works.
- When a fullscreen app is in the foreground (video, games), the pet hides automatically and returns when you leave fullscreen.
- The pet breathes, blinks randomly, follows the latest keycap with its eyes and sways its tail while typing; it lies down after about a minute without typing, alternates its paws while you type, and opens its eyes and mouth wide during fast bursts.
- Windows only; it uses no image assets and does not affect interception. See docs/pet-roadmap.md for the roadmap.
Blocked keys and state events (target keyboard connect/disconnect, automatic pause/resume, blocking and pet actions) are written to the log:
| Platform | Log and config directory |
|---|---|
| Windows | %LOCALAPPDATA%\keyboard-plus\ |
| macOS | ~/Library/Caches/keyboard-plus/ |
- The log file is
keyboard-plus.log; after 1 MB it rotates tokeyboard-plus.log.1. - "View log" on Windows shows the last 500 lines in a built-in window and refreshes every 2 seconds; "Clear log" deletes the log and its rotated backup. macOS opens the log with the default app.
- "Config location" reveals
config.jsondirectly. - Note: logs contain the names and key codes of blocked keys, which are input data. Clear or edit them before sharing or filing an issue.
- Windows: writes
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runwith the full path of the current exe. - macOS: writes
~/Library/LaunchAgents/com.singcl.keyboard-plus.plist, effective at the next login; unchecking removes the file.
The app silently checks GitHub for the latest version at startup and only notifies when a new version exists; you can also click "Check for updates…" at any time. For safety, updates only notify and open the download page; they never download or replace the program automatically. The slim build has no update check and does not access the network.
config.json uses fixed field names; Windows and macOS, standard / advanced / slim builds all share the same file, and older configs keep working.
| Field | Default | Description |
|---|---|---|
schema_version |
1 |
Config schema version for future migrations; a missing value is treated as 1 |
debounce_ms |
100 |
Debounce threshold in milliseconds, 10–1000 |
target_name |
"" |
Target keyboard name (either name or path may match) |
target_path |
"" |
Target keyboard device path |
only_when_connected |
false |
Debounce only while the target keyboard is online |
paused |
false |
Manually paused; persists across restarts |
icon_style |
0 |
Tray icon style: 0 keyboard, 1 pulse (ignored by the slim build) |
theme |
5 |
Menu theme: 0 coral, 1 sky, 2 mint, 3 violet, 4 graphite, 5 black & white (default); the slim build always uses the default theme |
lang |
"auto" |
UI language: auto (follow system), zh (Simplified Chinese), en (English), ja (Japanese); Windows only; the slim build always uses English |
blocked_keys |
[] |
Virtual key codes to block |
pet_enabled |
false |
Show the desktop pet |
pet_scale |
100 |
Pet size percentage, 50–120 |
pet_opacity |
90 |
Pet opacity percentage, 40–100 |
pet_private |
false |
Pet privacy mode |
pet_x / pet_y |
0 |
Pet window position; whether it is used depends on pet_has_pos |
pet_has_pos |
false |
Use pet_x / pet_y; otherwise place at the bottom-right corner |
pet_fullscreen_hide |
true |
Hide the pet when a fullscreen app is active |
keytest_layout |
0 |
Keyboard test layout index (0–27, order in assets/layouts.json); new configs prefer keytest_layout_key |
keytest_layout_key |
"" |
Stable layout key (e.g. tkl87) that takes precedence over the index; written when a layout or model is chosen |
keytest_model |
"" |
Selected keyboard model id in the keyboard test (e.g. leopold-fc660m); empty means Custom and is cleared when a layout is picked manually |
Nothing happens when I double-click it?
The app is already running. A second launch opens the existing instance's menu (older versions show an "already running" dialog). You can also use the tray icon in the notification area.
I changed the threshold but still get occasional chatter?
If the false press is "out of nowhere" rather than a duplicate response, debounce cannot handle it; use "Block keys" to swallow that key entirely.
The target keyboard stops working after I change ports?
The device path is bound to the USB port; select it again under "Target keyboard".
The pet disappears while watching videos or playing games?
Hiding in fullscreen is intentional; it returns when you leave fullscreen so it does not cover content.
Can I use the standard, advanced and slim builds at the same time?
They share config and logs and are mutually exclusive as a single instance, so only one runs; switching builds needs no reconfiguration.
macOS receives no keys?
Check System Settings → Privacy & Security → Input Monitoring and enable the app; restart it afterwards.
Windows says "Windows protected your PC"?
The build is not code-signed, so SmartScreen may block it on first run. First verify the archive against SHA256SUMS-windows.txt from the same release (PowerShell: Get-FileHash .\keyboard-plus-<version>-windows-amd64.zip -Algorithm SHA256), then click More info → Run anyway. If you extracted the exe from the ZIP, you can also uncheck Unblock in its file properties. Only run files downloaded from this repository's Releases.
Will antivirus software flag it?
The app uses a global keyboard hook and autostart, which resembles a keylogger, so some security tools may warn. Make sure it came from this repository's Releases before allowing it.
Rust 1.85+ (edition 2024) is required. On Windows you also need the MSVC toolchain (Visual Studio Build Tools + Windows SDK), i.e. the default x86_64-pc-windows-msvc target; there are no other third-party build dependencies.
build.bat # Windows cmd / PowerShell
./build.sh # Git Bash / WSL / macOS
Both scripts produce the standard, advanced and slim builds (keyboard-plus.exe, keyboard-plus-advanced.exe and keyboard-plus-slim.exe on Windows); the windows_subsystem attribute keeps the console window hidden at runtime. When Inno Setup 6 is installed, build.bat also builds keyboard-plus-<version>-windows-amd64-setup.exe; otherwise it prints a hint and skips it.
Manual build:
cargo build --release # advanced (default, includes keyboard test)
cargo build --release --no-default-features --features standard # standard
cargo build --release --no-default-features # slim
cargo test # unit tests
The version, icon and manifest are assembled by build.rs and compiled into the program: the version comes from the KEYBOARD_PLUS_VERSION environment variable, falling back to Cargo.toml; rebuild with cargo build after changing files under assets/.
The Windows installer is compiled with Inno Setup 6 after keyboard-plus.exe is placed in the repository root:
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DAppVersion=2.22.0 installer\keyboard-plus.iss
The output is keyboard-plus-<version>-windows-amd64-setup.exe in the repository root. The installer is available in Chinese, English and Japanese; put ChineseSimplified.isl in installer/ for the Chinese UI (CI downloads it automatically and falls back to English/Japanese if unavailable).
The macOS build uses the Objective-C / C menu bar and event tap in native/macos/, compiled by cc; Xcode command line tools are required. Universal binary (Apple Silicon + Intel):
rustup target add aarch64-apple-darwin x86_64-apple-darwin
for target in aarch64-apple-darwin x86_64-apple-darwin; do
cargo build --release --target $target --bins
done
lipo -create -output keyboard-plus \
target/aarch64-apple-darwin/release/keyboard-plus \
target/x86_64-apple-darwin/release/keyboard-plus
Add --no-default-features for the slim build as well.
.
├── assets/ # icons, manifest and banner; icons embedded, the rest compiled by build.rs
├── docs/pet-roadmap.md # desktop pet roadmap
├── docs/roadmap.md # overall development roadmap
├── installer/ # Windows installer (Inno Setup script)
├── native/macos/ # macOS Objective-C / C implementation (menu bar, CGEventTap)
├── src/
│ ├── main.rs # platform entry, single instance and version constant
│ ├── tray/ # Windows UI: tray, menu, dialogs, log window, on-screen keyboard, pet
│ ├── macos/ # macOS entry: FFI bridge to native/macos
│ ├── hook/ # keyboard interception (WH_KEYBOARD_LL / CGEventTap) and duplicate detection
│ ├── devices/ # keyboard device detection (Raw Input) and grouping
│ ├── logging/ # interception log (async writes, rotation, clearing) and key names
│ ├── autostart/ # start with system (Run key / LaunchAgent)
│ ├── update/ # update check (standard); empty implementation in the slim build
│ ├── singleinstance.rs # single instance (named mutex / file lock)
│ ├── config.rs # config structure and atomic persistence
│ ├── state.rs # shared config state (used by both platform entries)
│ ├── stats.rs # today's block counter (resets across days)
│ └── timeutil.rs # local time formatting (log timestamps, day boundaries)
├── build.rs # version injection, Windows resources, macOS native sources
├── .github/workflows/build.yml # CI: Windows / macOS builds and releases
├── build.bat / build.sh # local build scripts
├── Cargo.toml
├── README.md # English
├── README.zh-CN.md # 简体中文
├── README.ja.md # 日本語
└── PRIVACY.md # Privacy policy (Chinese / English / Japanese)
The repository includes scripts to set and unset a Git proxy locally; they only affect this repository and do not modify the global configuration.
Windows:
git-proxy.bat set # use the default proxy http://127.0.0.1:10808
git-proxy.bat set http://127.0.0.1:7890 # specify a proxy
git-proxy.bat unset # remove the proxy
Shell (Git Bash / macOS / Linux):
./git-proxy.sh set
./git-proxy.sh set http://127.0.0.1:7890
./git-proxy.sh unset
- Original project: garfeng/keyboard, MIT, C++ implementation.
- This repository: rewritten in Go, adding logs, device detection, target keyboard, autostart, tray / menu bar UI and macOS support; rewritten in Rust since November 2026.
The app collects and uploads no user data, and keeps configuration and logs on your device. The standard build only contacts GitHub to check for updates; the slim build makes no network requests at all. See PRIVACY.md for details.







