UHK80 Sends escape instead of caps lock

Just received my UHK 80 (US version), after being a UHK 60 user for a couple years, so
I am conversant with the keyboard, using UHK Agent, etc. In general my issues have been minimal, I did have an issue with one of my dongles that I’ll post about separately but other than that everything seems to be working except for this issue, so far.

The issue I’m posting about here is that I am unable to configure capslock or engage capslock. I am using the default “Qwerty for Mac” keymap with no changes.

Everything looks to be configured properly in the Agent keymap config (“A” key mapped to send “Caps Lock” when the mod layer is activated) but even after deleting/re-adding the keymap from the defaults, and saving my config to the keyboard, pressing mod+A sends “escape” instead of “capslock”, and the capslock indicator in the LED display never comes on. Any ideas why this might be happening? I’m using firmware 12.2.0, MacOS 15.3 and Agent 5.0.2. This occurs when the UHK 80 is connected via the USB cable or the dongle or bluetooth, with or without the bridge cable connected.

I have found the caplocks indicator on the UHK80 to be flaky. For me 50% of the time the indicator doesn’t correspond to the reality.

I don’t see the same issue MOD+A does trigger caplocks for me (but again the indicator is not consistent)

12.3.1 MacOS 15.2

Albeit not the US keyboard

I was unable to find documentation showing a direct set of scancode definitions, but after doing some keymap userconfig.json export juggling, it looks like scancode for capslock is 57. Is this correct?

Also, not sure if this is relevant, but MacOS’s setup assistant was unable to identify my keyboard, erring out after the first test (“press the key to the left of the left shift key” which on my keyboard is z/zed.), requiring me to manually set it to to ANSI (U.S.). I wonder if this is related…

Thanks, just created Flaky *lock indication on the OLED · Issue #1126 · UltimateHackingKeyboard/firmware · GitHub

Please see https://ultimatehackingkeyboard.com/knowledgebase/caps-lock-doesnt-work-on-osx