Flow control & toggle the light

Hello everyone :slight_smile:
I want to ask 2 simple questions ~~

After I press F to turn on the light , then I press F again not to turn off the light .
How should I do ?
ps : I used Trigger Volume .

When I press F to turn on the light -----> return true
When I press F again to turn off the light or I press nothing ----> return false
How should I do ?

Can you post a picture?

Use a Flip/Flop after Pressed output of key event, turn the light on with A and off with B.