binding key event to run the a href of an element
<p>I have this code</p>

<pre><code>&lt;script type="text/javascript"&gt;
                          function liveeditor()
{ mywindow = window.open("/h8-html-editor", "LiveEditor", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=900px,height=900px");
mywindow.moveTo(15, 15);
}
   &lt;/script&gt;
</code></pre>

<p>What I want to add is this I believe from jQuery Docs</p>

<pre><code>$('#target').keydown(function() {
  alert('Handler for .keydown() called.');
});
</code></pre>

<p>How would I implement that to the code above? Would i create another code basically with the .keydown function with the mywindow = window.open code inside where the alert is?</p>

<p>Code I tried just not getting the event from the code I posted above of the <code>function liveeditor()</code></p>

<pre><code>$(function(){
   $(window).keydown(function(event){
  if (event.which == 67) {
       event.liveeditor();
    }
  if (event.which == 69) {
       event.colorpick();
    }
  });
});
</code></pre>
