Connecting a 4*4 keypad

Why not just make a keypad that uses only one analog pin? I made a library just for those type of keypads and put it in the playground. Here is a link. OneWireKeypad

Just follow my diagram and look at my example sketches.