Using 74HC595 for shift in

Is it possible to just c/p code (and wiring) from this page

to use 74HC595 to read digital inputs rather than using it as LED driver?

Moderator edit: title corrected

No. A '595 is just for outputting. You need a device that can store inputs and shift them out (parallel-in, serial-out), like the device they specify or a 74HC165.

or a 597 which is works the same as a 595 but with 8 inputs and a serial out

Alright, thanks, I’ve bought the 4021 chip. Quick question: does the chip support multiple button presses at once?

It'll capture the state of all the inputs when the shift-out cycle starts.

That's what I thought. Thanks!