I believe I managed to crash a self-modified firmware version of my keyboard. Luckily it seems difficult to get into a state where going back to a factory version doesn't work, or at least I've not managed that.
I don't understand what I did wrong, either. I'll live without fancy modifier-based colour effects for now.
Lars and friends