Hi,

Why don't you use Darrel's interrupts? It's a lot easier than ON INTERRUPT GOTO ISR.

Also, it is much easier to include a line in your MAIN routine that monitors the state of a switch. You can use the pullup resistors in PORTB, a switch, and a line of code with an IF statement to do what you want. Of course, you need to de bounce the switch.