My state change detection for active low inputs tutorial shows how to sense when a switch becomes pressed so that you can do one action for each press. The tutorial includes how to wire a momentary switch to ground and use the internal pullup resistor as is common practice.