Is there away to stop a loop using a hot key, <esc> or the <ctrl-break> key?

Any help would be appreciaited.