so Im trying to write a program that needs to log keystrokes. I have this current script:
def __call__(self):
ch=msvcrt.getch()
if ch in b'\x00\xe0':
ch=msvcrt.getch()
return ch
this works for basic keys but does not show arrowkeys, backspace, enter. it also does not work outside of the program window. how would i make it run outside of the window and log these other keys on Windows?