There's no way I know to jump out of the loop without a button.

BUT what is the purpose of the loop, Maybe you just do not need it.