title: How to Move a Bootstrap Modal Popup using Keyboard Arrow Keys
body: <p>I'm using Bootstrap's Default Modal Popup here with JQuery UI Draggable Function as shown in the code below in the <strong><a href="https://jsfiddle.net/vibs2006/z34hqu7x/" rel="nofollow noreferrer">JS fiddle</a></strong>. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> $(document).ready(function() {
  
     $("#btnTest").click(function() {
       $('.modal').modal({
         keyboard: false,
         show: true
       });
       // Jquery draggable
       $('.modal-dialog').draggable({
         handle: ".modal-header"
       });
     });
  
  
   });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.modal-header {
    cursor: move;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;script src="//code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
  &lt;script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"&gt;&lt;/script&gt;
  
  &lt;script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;div&gt;
    &lt;div class="modal fade"&gt;
      &lt;div class="modal-dialog"&gt;
        &lt;div class="modal-content"&gt;
          &lt;div class="modal-header"&gt;
            &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
            &lt;h4 class="modal-title"&gt;Modal title&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body"&gt;
            &lt;p&gt;One fine body&amp;hellip;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
            &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
            &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- /.modal-content --&gt;
      &lt;/div&gt;
      &lt;!-- /.modal-dialog --&gt;
    &lt;/div&gt;
    &lt;!-- /.modal --&gt;
  &lt;/div&gt;
  &lt;div&gt;
    &lt;h4&gt;
  Draggable Modal Demo by Vibs
  &lt;/h4&gt;
    &lt;input type="button" id="btnTest" value="Show Popup" /&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can someone help me to enable functionality which will let me move the modal popup via keyboard's arrow keys of UP/DOWN/LEFT/RIGHT ?</p>