A pushbutton turns on an LED when you press it.

Connect one leg of the pushbutton to 5 volts and the other to digital pin 2 and a 10kΩ pull-down resistor.