Problems setting up a 2x2 matrix

As you can see in the image I keep getting an issue with a 2x2 matrix; only getting char 1 and 3, this means 2 and 3 (second column) aren't recognized for some reason. The right image shows the circuit diagram I used but adapting it to 2x2 matrix using Pins RD7 as pin 2, RD6 as 3, RD3 as 4 and RD2 as 5.

(Used Keypad.h)

Somebody knows the problem? Any solutions?

I suggest to check the wiring on the keypad with a multimeter. Push each button and check for continuity, or at least verify a usable resistance. Perhaps the keypad isn't wired the way you think it is.