How to set the shortcut of an action outside of your own module?
Register a shortcut at the "Shortcuts" folder in the layer.xml.
<folder name="Shortcuts">
<file name="C-8.shadow">
<!--org.netbeans.modules.db.explorer.action.ExecuteCommandAction-->
<attr name="originalFile" stringvalue="Actions/Database/org-netbeans-modules-db-explorer-action-ExecuteCommandAction.instance"/>
</file>
</folder>