Windows 11 keyboard input occasionally becomes corrupted, but a low-level keyboard hook appears to "reset" it

Tatiana Mathis 0 Reputation points
2026-09-03T07:07:30.5733333+00:00

I'm trying to determine whether I've encountered a Windows 11 keyboard/input-stack issue rather than a hardware or keyboard-driver problem.

The symptom was intermittent: the S key would sometimes behave incorrectly in applications. In particular, an application could behave as though S were repeating when I held the key down, even though the behavior didn't appear to correspond to what the keyboard was actually generating.

I ran several tests to isolate the layer involved.

What I found:

  • The keyboard itself otherwise worked normally.
  • I wrote a small PowerShell test using a low-level keyboard hook to monitor keyboard events.
  • When the application was exhibiting the problem, the PowerShell monitor was still receiving the expected S key event.
  • Holding S down produced what appeared to be a single key event to the monitoring script, while the affected application behaved as though the key were repeating.
  • This made a physical keyboard/switch problem seem unlikely because the lower-level monitoring layer was seeing correct input while the application was not.
  • I then stopped and restarted the low-level keyboard hook.
  • Immediately afterward, the keyboard/application behavior was normal.
  • Importantly, stopping the monitoring script afterward did not cause the problem to return.
  • The keyboard has subsequently continued working normally for approximately an hour, including after terminating the monitoring script with Ctrl+C.

This produced an interesting sequence:

application input broken → register low-level hook → behavior normal → unregister hook → behavior remains normal

I'm wondering whether registering/unregistering a WH_KEYBOARD_LL hook can cause Windows to reset or reconfigure some portion of the keyboard input path, hook chain, or input state.

I'm not claiming that the hook is definitely "fixing" the underlying problem. It could be coincidence, or the state transition could be occurring somewhere else in the Windows input stack. I'm mainly interested in whether anyone has encountered a similar Windows 11 issue where:

  1. The application receives incorrect/repeated keyboard behavior.
  2. A lower-level keyboard monitor still sees the expected events.
  3. Registering/unregistering a low-level keyboard hook causes the application behavior to return to normal.
  4. The fix persists after the hook is removed.

I'm particularly interested in reports involving recent Windows 11 builds, keyboard hooks, Raw Input, WH_KEYBOARD_LL, HID/input processing, or applications receiving keyboard events differently from what a lower-level monitor observes.

Has anyone seen this behavior or know what Windows component/state might be getting reset when a low-level keyboard hook is registered or removed?

Windows for home | Windows 11 | Devices and drivers

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer recommended by moderator
Tatiana Mathis 0 Reputation points
2026-11-29T03:50:56.2366667+00:00

Solved: random doubled letters and skipped or doubled spaces were caused by two things, ASUS Armoury Crate/Aura, USB power to the keyboard, **and Windows USB power saving


**Fixed (confirming over the next few days):

Symptoms: On Windows 11 (build 26300, i9-12900K, ASUS motherboard), random keys typed twice (S, C, V, A) and the spacebar sometimes doubled or didn't register. It happened in every app, including Notepad. It often got worse the longer the PC was on, and sometimes seemed fixed after a restart before coming back. Keyboard: MageGee MK-STORM (wired, mechanical, LED backlit).

How I narrowed it down:

  • I wrote a small Python logger using a low-level keyboard hook (WH_KEYBOARD_LL). It showed that the doubled keys were real presses coming from the keyboard: key down, key up about 33 ms later, then down again about 22 ms after that. That's faster than a finger can move. None of the events were software-injected or auto-repeat. The missing spaces never reached Windows at all.
  • The Event Viewer showed the ASUS AURA Motherboard HAL (Aac3572MbHal_x86.exe) crashing twice (0xc0000005 in combase.dll) during the worst periods.

Fix part 1: remove ASUS Armoury Crate / Aura completely. Uninstalling Armoury Crate and every AURA component (HALs, Lighting Service, DRAM plug-ins, Fan Xpert) gave an immediate improvement. Check for leftover drivers afterward. I found MsIo64.sys (MICSYS) and CtiAIo64.sys still loading at boot from the DRAM RGB plug-ins, and disabled them:

sc.exe config MSIO start= disabled
sc.exe config CTIAIO start= disabled

(MsIo64 also has published security vulnerabilities, so it's worth removing regardless.)

Fix part 2: USB power to the keyboard. Some glitches remained even with all of these ruled out: a clean boot, the NVIDIA driver disabled, Discord closed, and no driver latency problems in LatencyMon. The deciding test was booting an Ubuntu live USB on the same PC: the glitches happened there too. The same keyboard worked perfectly on a PS5 and on a separate laptop, so the cause was this PC's hardware, not Windows.

Turning off the keyboard's LED backlight stopped the glitches immediately. The backlight is the keyboard's biggest power draw. On the original port, the power wasn't clean or strong enough, and the keyboard's own chip misread keys as double presses or missed them. Moving the keyboard to a different USB port let me turn the LEDs back on with no problems.

Fix part 3: turn off USB power saving. The "after a break" pattern was the clue. In my typing test, the first few lines after a pause had about 1 in 5 S presses doubled, while steady typing dropped to about 2%. Windows was letting the USB hub and keyboard go into a low-power state when idle. I turned that off in two places:

  1. Power plan: Control Panel → Power Options → Change plan settings (on the active plan) → Change advanced power settings → USB settings → USB selective suspend setting → Disabled → OK. Same thing from an admin Command Prompt:
       powercfg /setacvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0
       powercfg /setactive SCHEME_CURRENT
    
  2. Device Manager: for each device below, right-click → Properties → Power Management tab → uncheck "Allow the computer to turn off this device to save power" → OK:
    • Universal Serial Bus controllers: every USB Root Hub, Generic USB Hub, and USB Composite Device
    • Human Interface Devices: the keyboard's USB Input Device entries (mine shows up as two, which is normal for keyboards with media keys)
    • Keyboards: HID Keyboard Device, if it has a Power Management tab

Results after turning off USB power saving: 138 deliberate taps of S produced exactly 138 S's. Typing test lines were clean, and still clean after leaving the keyboard untouched for about 30 minutes (before the change, that would reliably bring the doubles back). I'll update this after a longer idle and a restart. Windows updates can switch selective suspend back on, so that's the first thing to check if it returns.

If you have similar symptoms (easiest first):

  1. Turn off USB selective suspend and the "Allow the computer to turn off this device" checkbox on your USB hubs and keyboard (steps above), especially if it's worst after you've been away from the keyboard.
  2. Turn off your keyboard's backlight. If that helps, try other USB ports or a powered USB hub.
  3. Uninstall Armoury Crate/Aura (or similar RGB software) and check for leftover drivers.
  4. Boot a Linux live USB on the same PC. If the problem happens there too, look at hardware or power rather than Windows software.

Was this answer helpful?

1 additional answer

Sort by: Most helpful
  1. Vikki-T 15,220 Reputation points Microsoft External Staff Moderator
    2026-09-03T12:56:01.23+00:00

    Hi Tatiana Mathis,

    I can understand why this behavior is puzzling, especially since the low-level monitor reports the expected key events while the affected application behaves as though the key is repeating. The testing you have already done is very helpful in narrowing down where the issue may be occurring.

    Based on the behavior described, this does not necessarily mean that registering or unregistering a WH_KEYBOARD_LL hook resets the Windows keyboard input stack. The improvement could also be related to a change in timing, application focus, message processing, or an internal key state being refreshed at around the same time.

    Since the low-level hook receives the expected events, the issue may be occurring further along the input path, such as within the affected application, its message queue, its key-repeat handling, or another program that is intercepting or modifying keyboard input. Raw Input, low-level hooks, and standard keyboard messages also observe input at different stages, so their results may not always match exactly.

    To narrow this down, could you confirm the following?

    • Does the issue occur in only one application, or in multiple applications such as Notepad?
    • What is the name and version of the affected application?
    • Which Windows 11 version and OS build are you using?
    • Are any keyboard remapping, macro, overlay, accessibility, gaming, or input-management applications running?
    • When the issue occurs, does changing focus to another application and then returning to the affected application restore normal behavior?
    • Have you been able to reproduce the same sequence more than once?

    If the behavior occurs again, it may also help to test with a clean boot and temporarily disable non-Microsoft keyboard utilities or overlays. Comparing the behavior in Notepad with the affected application could help determine whether the problem is system-wide or isolated to that application.

    At this stage, the observation suggests a possible application-level input state issue or interference from another input component, but there is not yet enough evidence to conclude that the low-level hook is resetting an underlying Windows component.

    While my initial response may not fully resolve the issue, I truly appreciate your cooperation as we work together toward identifying the most effective solution. Thank you so much for your understanding. 


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?