Press 2 buttons

How are the inputs wired ?

Have you got pullup resistors in the circuit to ensure that the inputs are always kept at a known voltage and not floating at an unknown voltage ?