I was working on a script in WIP and after a fixing a bug I suddenly could not complete commands with Enter, neither delete objects with Delete or cancel inputs with ESC.
I was about to restart Rhino when I discovered that just closing the python editor restored the keyboard control to Rhino. (I could type and copy and paste and complete commands with Space while the other keys were disabled) And everything worked fine after opening the python editor again. (no need to restart Rhino)
This is first time I experience this and I have not been able to reproduce it.