The check should come after the player pressed the button. You get the message twice because when someone pushes a button the state of the button changes twice (once when it's pressed and once when it's released).
The check should come after the player pressed the button. You get the message twice because when someone pushes a button the state of the button changes twice (once when it's pressed and once when it's released).