I tried the keypad with 9 pins by using the libeary code from Arduino Tutorial and it works fine. But I don't know how shold I connect a keypad with 14 pins to an Arduino now. Each key has an output pin with this 14 pins keypad, I don't if this still fits the keypad libeary?
I think the library expects the keys to be organized in a matrix.
If your 14 pin keypad has a pin for each key, you could just hook up each pin to a digital pin on Arduino and read the state of the pin, just as if you were hooking up 14 individual switches.
You could actually hold all key states in a single integer. The code might get a little terse though.
[a lot of bit manipulating macros <bitRead,bitWrite>]
... and every button has an output pins. So there are 14 pins, two pins are useless.
How did you determine this? We could help you more if we were provided with all of the information.
As AlphaBeta has implied each button needs two pins. They may be wired so that all 12 buttons share a common pin in which case there would be 13 pins required. A 4x3 matrix would require 7 pins and a 2x6 matrix would require 8 pins.