JQuery ~ How to keep moving the object when keydown
<p>In JQuery ~
I hope to make a simple character moving, Stop > Left || right.</p>

<p>This script make #moveCharacter turn left walk 10px <strong>once</strong>.</p>

<p>How can I <em>keydown</em> keep turn left <strong>walking</strong>,when <em>keyup</em> stop walking (like a character)??</p>

<pre><code>// Left moving
$(document).keydown(function(e){

    if (e.keyCode == 37) { 
      $("#moveCharacter").animate({marginLeft: "-=10px"}, {queue:false});
       return false;
    }
});
</code></pre>

<p>2.I try to change keypress() but it has not work.....what wrong?</p>

<pre><code>var xTriggered = 0;
$(document).keypress(function(e){
   xTriggered++;
    if (e.which == '37') { 

      $("#moveCharacter").animate({marginLeft: "-="+xTriggered+"px"}, {queue:false});
       return false;
    }
});
</code></pre>
