• I'm not sure I understand? You want to just flip the state of a boolean value when a button is pressed? If so something like this should be fine:

    var l = false;
    setWatch( function(e) { l=!l; }, B5, {repeat:true, edge:'falling', debounce:100});
    
About