qmk/qmk_firmware

[Bug] Random input lag delay when mousekey feature is on

Open

#25835 opened on Nov 28, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C (20,368 stars) (43,867 forks)batch import
bughelp wanted

Description

Describe the Bug

If mousekey is on, keyboard latency is completely random. But if define KEYBOARD_SHARED_EP = yes, this fixes issue, so it might be related to the mouse endpoint. Tested on multiple QMK keyboards, the same random delay behaviour is found on all keyboards with mousekey enabled. All measurements are done via keyboard latency tester. Here are my measurements with 2 variables: mousekey and keyboard shared ep:

Keyboard Used

darkproject/kd83a_bfg_edition

Link to product page (if applicable)

No response

Operating System

Any

qmk doctor Output

Is AutoHotKey / Karabiner installed

  • AutoHotKey (Windows)
  • Karabiner (macOS)

Other keyboard-related software installed

No response

Additional Context

No response

Contributor guide