Reading a 4x3 matrix problem

With analog buttons you have a number of buttons that connect a different resistor each to power (press one button at a time only) on one side and the analog pin and another resistor to ground forming a voltage divider. Each button press makes a different voltage on the pin, make sure none are close to any others.