To invert the polarity of a button (i.e., make it respond for release, instead of push), call the invert() method of ButtonTracker
button_.invert(button#);
or use NotAdapter (see the example in the NotAdapter manual page).
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#NotAdapter
The difference is that the former method inverts the button values stored in the data file as well and the latter does not.