@name Toggle Template
@inputs Key
@outputs Toggle
@persist Toggle
if (Key & ~Key) {Toggle = !Toggle}

#Key & ~Key are only 1 when you first press the key.  
#~Variable is only one at the instant it changes, so ~Key is one 
#when you press and when you let go and only at that instant. 
#!Toggle is the binary opposite so defining Toggle as it's own 
#Opposite means that if it's 0 it's now 1 and vise versa
#You must put your toggle variable in persist or it'll forget it ever
#was 1 and it'll always be 0.
