A pull up resistor goes from the input pin to the 5V rail. Then the input pin is wired to one side of the button and the ground to the other.
A pull up resistor goes from the input pin to the 5V rail. Then the input pin is wired to one side of the button and the ground to the other.