handle numeric keypad codes