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