Each of the key equivalent strings is just a character that enters the key. For text editing keys, there are symbolic constants for each character defined in NSText.h and documented in the NSText documentation . Use [NSString stringWithFormat:@"%C", desiredCharacterGoesHere] to convert them to NSStrings for use with objects such as NSMenuItems.
The same goes for the keys on the numeric keypad, which are no different from their cousins on the main keyboard. In the end, we are dealing with characters, and both sets of keys enter the same characters. I do not think there is a way to set the key code menu, but not its key equivalent; you will need to implement this yourself.
Note that “delete” (as opposed to backspace) is called “forward delete” on a Mac, since backspace is usually called delete.
source share