Button and LED

Did you use pull-up or pull-down resistor? If not, see this post Button FAQ: common mistake - button does NOT work as expected. - Introductory Tutorials - Arduino Forum