Drag an application, directory or file onto the pinboard or a panel. Bring up the menu and choose Edit Item. Set the shortcut there.
These shortcuts can be used whatever else you are doing, so don't use a shortcut that's often used for something else, like F1!