Keypad class implemented