#23 - Global key event to stop infinite loops and long loops.