Keypad error

Try the examples provided with the library .zip, see how it compile without errors and only then, try to modify it as you want.

While you are at it, delete Arduino 1.0.1 and install 1.0. Do not go back to 1.0.1 until they fix the stupid problem where missing include files are OK.