How to set function keys as key equivalents programmatically

From NSMenuItem Class Reference If you want to specify the Backspace key as the key equivalent for a menu item, use a single character string with NSBackspaceCharacter (defined in NSText.h as 0x08...