keypad

code hopefully completed needs testing
added header files as well