Connecting a 4*4 keypad

The first question that comes to mind is: "Do you realize that analog pins can be used as digital pins?"

Reply#5 gave the OP an example of that. It would appear he has not looked at it.