LED Fade Loop Inturruption with Push Button

Please edit your post putting your code between a code and a /code tags. code and /code must be in []. I can't write them here, because you could only see a code box!

The button needs a pull-up (if switch closes to ground) or a pull-down resistor (if switch closes to +V). You can activate pull-up resistors by software:

pinMode (BUTTON, INPUT);

digitalWrite(BUTTON, HIGH);
or
pinMode(BUTTON, INPUT_PULLUP);

Usually switches close to ground, because you don't have to run +V wires.

Instead of wasting code for debouncing, you can simply connect a 1uF capacitor (via 100 ohm, if you want to be meticulous) from input pin to ground or to +V.

for (int i=0; i<256; i++) {analogWrite(LED, i); delay(10);}Please note that you don't check the button in the for loop, then you can do nothing until the loop ends.