Terry J. Reedy added the comment:
This is a duplicate of #31244, but I continue here with more experiments using
the code above. I first confirmed that on Windows, CapsLock is really 'caps
inversion. Keycode 67 is the keycode for 'C' given in
https://www.tcl.tk/man/tcl/TkCmd/keysyms.html (A
Terry J. Reedy added the comment:
It appears that your particular keyboard program is translating Ctrl + letter
key combinations to something other than the default Ascii Control-letter code.
Do you see the same problem with Notepad? To test what tcl/tk and hence
tkinter see, expand the te