I want to be able to use the msvcrt
package in python to catch keypresses via the msvcrt.getch()
method but it appears the the terminal window needs to be in focus for it to work. Is there a way around this?
I found a python wrapper for Ctypes as suggested by @IInspectable. It wraps the low_level Keyboard hooks with a nice monitor class.