"Lock Keyboard Focus" state changes without actively changing it

it seems to happen randomly.
it happens more often when using gear that sends MIDI CC.