Button trouble

It is probbly the way you have wired them up.
The resistors go to the arduino inputs and the switch goes to the input and +5V ( assuming they are using pull down resistors )
I always wire across the corners of a switch to make sure I have the right connections.