Why my For Loop with Break not working?

Pressing a button and doing A-B should work no matter what. Does it?