Problems with the HC165 Shift Register

The inputs don't have pullup resistors. Add a resistor to every switch.