Looking for a BOOL on/off node

What about this:

on key pressed: get A > not A > set A