title: Using the arrow key in a Jupyter keyboard shortcut
body: <p>I'd like to add <code>Cmd-↑</code> as a shortcut for &quot;Move cell up&quot; in Jupyter, but the instructions offer no guidance on how to do so.</p>
  <p>Apparently it can be done since, for example, <code>collapse-heading</code> and <code>uncollapse-heading</code> are bound by default to <code>←</code>, <code>→</code>, respectively.</p>
  <p>Using the exact UTF-8 sequence above doesn't work:</p>
  <p><a href="https://i.stack.imgur.com/Q0ZB0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q0ZB0.png" alt="A screenshot of the keyboard shortcuts portion of the Jupyter interface with three parts: (1) the Apple Command key symbol; (2) the word &quot;Undefined&quot;; (3) an &quot;x&quot;" /></a></p>
  <p>How can I use arrows in my custom shortcuts?</p>