added keypad functionality