bagaimana mengganggu loop di python

What i Wanted to know was how to stop a loop using the keyboard keys when it goes to infinte loop
Depressed Dunlin