import keyboard while True: if keyboard.is_pressed(\'a\'): print(\'a\') break
If press \'a\', \'a\' is print, but