main function of numeric keypad​