Bug with Hyper Key

I have the 'Act as Hyper Key' action set up for caps lock and as 'Actions Executed On (Unused) Huperkey Release' I have escape, which mostly works.

However, if the physical caps lock key is pressed really short short (key down and key up really short together), both actions are triggered, the escape (for unused hyperkey release), but also the hyperkey action.
The escape action happens right away and the hyper key action waits until any other key is pressed.

As an example: Say I have another shortcut which is hyper key + s. When I press the caps lock key really short, then the escape command is sent right away. But now if I hit s even after caps lock was up, it still executes that hyper key + s shortcut.
The interesting thing here is that there can even be a minute between caps lock key up and the s key, and it will still execute the hyper key + s shortcut.

This only happens if the physical caps lock key is pressed really short. As soon as I concentrate on holding down the caps lock key a little longer (like a full second) and releasing it unused to trigger escape, it works.
The issue is that I'm typing very fast so when I intend to trigger escape via the hyper key, I tend to hit it really short. And then whatever key I hit next on my keyboard potentially triggers the correlated hyper key + x shortcut.

This is especially annoying because almost every key on my keyboard has a hyper key action, so I constantly trigger unwanted shortcuts. The worst are when I close the window I'm currently typing in, just because I intended to trigger escape to get rid of a code completion pop up or things like that.

This bugged me for months, as I always triggered unintentional shortcuts. The timing of things made the failure so intermittent that sometimes it worked and sometimes it didn't. Now I know it's all within the fraction of a second and it depends if I pressed the caps lock key too short or just long enough. It always works if I concentrate on pressing it long enough.

It would be awesome if you could fix it so that whenever the caps lock key is pressed and released without another key combination, it triggers the 'Actions Executed On (Unused) Huperkey Release' and it doesn't depend on timing.


Device information:

  • Type of Mac: MacBook Pro 16-inch, Nov 2023
  • macOS version: 14.5 (23F79)
  • BetterTouchTool version: 4.616

Nice to find out you had dissected it into being related to the down press period. I can relate to this having the same issues. I thought this was related to updating from Monterey to Sonoma, as the latter introduced some new keyboard features such as the quite redundant balloon tip when changing keyboard layouts near the caret.

I'm experiencing the same issue and it's also the only reason I installed Karabiner-Elements again to have Esc/Hyper working correctly. There is one quite old topic as well but there was no conclusion or issue found it seems like: Problems with a "Sticky" hyper key