Как прервать петлю в Python

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