Check the current binding
Open the developer console and enter bind KP_1 with no second argument. KP_1 is the keypad digit one. The top row uses 1. If KP_1 already has an action, write it down.
Assign and test an action
For a console-only test, enter bind KP_1 "echo keypad_test". Close the console, press NumPad 1 and reopen the console. If keypad_test appears, replace the test command with the action you need.
If the key does not register
Test with Num Lock on and off. On a compact keyboard, check whether its extra layer sends a keypad digit or the regular 1. Restore the saved binding after testing or enter unbind KP_1 if the key was unused.