Static electricity? Fried board?

The digital inputs have such large resistance that if you do not tie them high or low with a resistor they will float in the middle. Their level will depend on how many electrons are trapped on them. This is easily changed by a static charged touch.

Wire up the switch and resistor and everything will be good.