jamescb82:
I took the keypad out to test the row and column wires by shorting them (like the keypad would) and they all work properly. Except pin 9 seems to be a duplicate of pin 6.
Very strange. Have you checked to see if 9 and 6 are shorted together? The sketch looks fine so I think it is a hardware problem.