Program stops after button press

Your schematic is hard to follow. You should have a resistor in series with the LED.

For better help you need to draw what you have actually done.