[Raspberry Pi] Tastenkombination STRG C über KeyboardInterrupt-Exception abfangen

import time

try:
    while True:
        print("--> Loop")
        time.sleep(1)

except KeyboardInterrupt:
    print("--> KeyboardInterrupt")

finally:
    print("--> finally")

print("--> Ende")