Here is a better way to wire normally open momentary switches (buttons). You can use the internal pull up resistors this way and the cap adds debouncing. Note that the input will be HIGH when the button is not pressed and LOW when pressed. Adjust logic as necessary.
