Attendez que vous appuyez sur Escape
import keyboard
# wait until you press escape
keyboard.wait('esc')
Arthur Adriansens
import keyboard
# wait until you press escape
keyboard.wait('esc')