You have a matrix. Use the matrix library. The keypad one. If you make them inputs you won't read anything. A column has to be output and a row input. Then it pulses each column and tests each row. That's how the matrix works.
You have a matrix. Use the matrix library. The keypad one. If you make them inputs you won't read anything. A column has to be output and a row input. Then it pulses each column and tests each row. That's how the matrix works.