This thread may help with toggling
https://forum.cockos.com/showthread.php?t=197401.
Hopefully you can translate the hint in this thread into simple working EEL2 code that tracks the button's state and sends the "on" and "off" toggling values wanted.