pętla Python Break na Keypress

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