BUTTON()== will give you information for any button that happens to be held down at the time you call it. If you want the edge information of BTRIG -- that is, you only want to find out about a button at the moment it's pressed -- you use BUTTON(2)== instead of BTRIG()==.