Press and then press again

It is quite simple, You need to have a variable that stores a value of how many times you have pressed F, then you need to get that variable and turn on/off the lights that belong by that number.