What is a good way to detect is any key has been pressed using Python. I can detect a particular key but see no easy and fast way to detect if any key has been pressed. Currently, I am using the keyboard library in Python. Is there is any latency-free way to do this?
question from:https://stackoverflow.com/questions/65851350/detect-if-any-has-been-pressed-in-python