Is there a node that acts opposite of the gate node

This sounds very close to what I did here: Led options help

Quick button press turns on/off. 2 second press puts it in program mode to make it brighter/dimmer, then goes back to on/off mode. I used debounce node to determine when button has been pressed for 2 seconds.