Working keypad function  working on main