Repeat gets stuck in VS Code

Describe the bug

Tonight, I set up some keyboard commands set for VS Code to remap the numeric keypad to arrow functions (basically emulating Windows w/o Numlock). Each command has a repeat rate of 0.06 and a delay of 0.15.

I've noticed on several occasions where a repeating key will get "stuck" and will continue to repeat long after keyUp. Swapping to another window and back again seems to resolve it.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):

Mechanical keyboard (dasKeyboard) connected to Mac Mini 2018 running Mac OS 12.0.1.

Device information:

  • Type of Mac: Mini 2018
  • macOS version: 12.0.1
  • BetterTouchTool version: 3.602 (1749)

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):

This seems to trigger when I'm keyboarding fairly fast, which I do when I'm coding. I'm wondering if somehow a keyDown on one key is happening before the previous key's keyUp, and somehow that is resulting in the previous key continuing to repeat.