Python Loop Break auf Tastaturpress

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