Look at the state change detection example (Files, Examples, Digital). You could use the buttonPressCounter variable and the switch statement to turn on/off the LEDs.
The example uses a switch to Vcc and pull down resistor so you will need to adjust the logic.