ahhh so qmk has an option to you to do things in your macro with a mouse … your qmk build you need to disable this.
what actually happens on the bus is capslock > some sort of chirp from the mouse > something
and that really really confuses the kvm. like nkro it should be disabled.
I think qmk is registering a mouse endpoint, would be my best guess.