Both buttons receive the 5v and they go to GND with a resistance .
Sorry, but I am still not clear how the inputs are wired. Is the input pin permanently connected to GND or 5V via a resistor and if so what is its value ? When the button is pressed is the pin taken to GND or 5V ?