from keyboard import Keyboard keyb=Keyboard() while True: print(keyb.scan(), end="")