Keyboard shortcuts to run applications or open files

How can I set applications or directories to open on a keypress?

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!