How do I use my matrix keypad?

I recently bought a matrix keypad for this: http://www.instructables.com/id/Password-Lock-with-Arduino project, but I cant figure out how to use it.

KEYPAD,12-BUTTON NUMERIC,BLACK 10-PIN 2 WIRES(10)FOR CONNECTN
Manufacturer JAMECO VALUEPRO
Manufacturer no. 10-PINKP-2

-Matrix Layout-
{Blk –Bwn Wire}
[1 2 3]
[4 5 6]
[7 8 9]
[* 0 #]

[Wire Layout]
Brown (Bwn) -------
Red ------------------
Orange --------------
Yellow --------------
Green ----------------
Blue ----------------
Purple ---------------
Gray -----------------
White ----------------
Black (Blk) ---------

-Output Combinations-

1 = Black, Blue
2 = Black, Green
3 = Black, Yellow
4 = White, Blue
5 = White, Green
6 = White, Yellow
7 = Purple, Blue
8 = Purple, Green
9 = Gray, Yellow

  • = Red, Orange
    0 = Purple, Yellow

= Red, Brown

I tried using it with the custom keypad example from the keypad library, but I couldnt figure out how, because it has 5 row wires, and five column wires.

Any help would be much appreciated, because I'm not sure how to start.

Try thinking of it like this:

YELLOW ------------------------
                               |
GREEN and BROWN-----------     |
                          |    |
BLUE and ORANGE------     |    |
                     |    |    |

BLACK -------------- 1    2    3

WHITE -------------- 4    5    6

PURPLE ------------- 7    8    0

RED and GRAY ------- *    #    9

Now you know why it was so inexpensive.

Don