4021 shift register inp

hello friends I need to read 30 entries in my project When I read with shift register, I read the inputs as binary, press several keys at the same time, I read an input like 10101. How do I determine each pin separately?

When I read in this way, I have to combine 30 buttons and enter a function, which is very difficult.

I think we are going to need to see your schematic if we are going to be able to help you out.

k0rkunc:
I read the inputs as binary, press several keys at the same time, I read an input like 10101. How do I determine each pin separately?

bitRead
Documentation

Pieter