They are not the same thing, though.
If the library is working, use it as a temporary foundation to develop the second stage of your program (i.e. validating the password). When this second stage is up and running, you can refactor the keypad-handling code to suit your hardware needs. Make sense?