title: Assign a shortcut to a function without creating a menu item
body: <p>I would like to assign a shortcut to a function for <code>nuke</code> menu in The Foundry NUKE. </p>
  
  <p>So far I'm doing it like this:</p>
  
  <pre><code>nuke.menu('Nuke').addCommand('customTools/do_this', 'do_This.doThis()', 'alt+u')
  </code></pre>
  
  <p>I would like to skip all the <code>nuke.menu</code> part and just assign <code>alt+u</code> shortcut to <strong>do_This.doThis()</strong>.</p>
  
  <p>Thanks a lot for the help.</p>