Run function on specific key press
<p>I have tried to program a jquery script that does a fadeIn() on an element identified as myDiv when I press the x key. </p>

<pre><code>function showKeyCode(e) {
   //alert( "keyCode for the key pressed: " + e.keyCode + "\n" );
   $if(e.keycode == 88){$("#myDiv").fadeIn();
}
</code></pre>

<p>Points to take note of. When I allow the alert x displays a key code of 88</p>

<p>This code does not work.</p>
