title: Adding keyboard shortcuts for move cell up and move cell down
body: <p>I am trying to add the Cntl+K and Cntl+J shortcuts to move cells up and down quickly.  I viewed the issue on Github <a href="https://github.com/ipython/ipython/pull/7732" rel="nofollow noreferrer">here</a> for adding the shortcuts and found what looked to be a workable answer:</p>
  
  <p>"For those (like me) who liked this shortcut, add this to your ~/.ipython/profile_default/static/custom/custom.js:</p>
  
  <pre><code>$([IPython.events]).on("app_initialized.NotebookApp", function () {
  
  IPython.keyboard_manager.command_shortcuts.add_shortcut('ctrl-k', function (event) {
      IPython.notebook.move_cell_up();
      return false;
  });
  
  IPython.keyboard_manager.command_shortcuts.add_shortcut('ctrl-j', function (event) {
      IPython.notebook.move_cell_down();
      return false;
  });
  </code></pre>
  
  <p>});</p>
  
  <p>"</p>
  
  <p>But my users/{my name}/.ipython/profile_default directory did not have a static folder.  I tried adding the missing folders and custom.js file, and reopened Anaconda prompt, but this did not add the missing shortcuts.</p>
  
  <p>Another answer had the same issue:</p>
  
  <p>"Use the following:</p>
  
  <pre><code>$ cat ~/.jupyter/custom/custom.js
  
  define(["base/js/namespace"], function(Jupyter){
      console.info('Binding Ctrl-J/K to move cell up/down');
      Jupyter.keyboard_manager.command_shortcuts.add_shortcut('Ctrl-k','jupyter-notebook:move-cell-up');
      Jupyter.keyboard_manager.command_shortcuts.add_shortcut('Ctrl-j','jupyter-notebook:move-cell-down');
  });
  </code></pre>
  
  <p>"</p>
  
  <p>This answer also did not work (adding the missing folder and custom.js file did not work).</p>