How to wire/interface a 4x3 membrane keypad
You have to poll the rows one at a time. Set the voltage high on only one row at a time. After trying each row, you'll have seen a high on only one column. The combination of active row and responding column tells you which button is pressed.