honestly i think keyboard controls should 100% be rooted in linuxcnc and be made an ini config setting. trying to thwart the underlying base code seems silly to me. it should be directly tied to linuxcnc core functionality and made user configurable for disabling keyboard jogging especially.
I agree, but I'm starting to think it's not possible to approach it that way.
LCNC responds to python scripts so that a whole host of functions work - remapping, GUI functions, etc.
I've got no idea how you could modify LCNC to reject
only keybinding or keyboard settings coming in through a python command.