fixed keypad setup bug