How does the push button in this circuit work?
The circuit is drawn badly, but still understandable. Without a button pressed, pin2 is pulled high (+5V) by the left 10k resistor. When the left button is pressed, pin2 is connected to ground via the very low resistance of the switch, so the voltage on it will be near 0V.

The right 10k resistor and switch work the same way.