import keyboard import time def main(): while True: pressed_key = keyboard.read_key() print(pressed_key.upper()) if __name__ == '__main__': main()