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