reading the state of a push-button w/ shift register

Hi, Is it possible to read, and write to the serial monitor, the state of a push-button switch using one of the output pins on the 74595 shift register? If so, how? jared

the 595 only goes out, you need something like a 74x165

okay, thank you jared