Break de boucle python sur la pression des clés

try:
    while True:
        do_something()
except KeyboardInterrupt:
    pass
Tommyom