Change animate value onkeydown
<p>I have this script:</p>

<pre><code>var speed = 10;
 if(left &amp;&amp; !right){ // Move siteA
        $(siteA).animate({'left':'+=10'}, 0);
     }
 if(right &amp;&amp; !left){
        $(siteA).animate({'left':'-=10'}, 0);
     }
 if(up &amp;&amp; !down){
        $(siteA).animate({'top':'+=10'}, 0);
     }
 if(down &amp;&amp; !up){
        $(siteA).animate({'top':'-=10'}, 0);
     }
</code></pre>

<p>I want the "10" to actually be replaced with the variable speed. So I can change it at will. How do I do it?</p>
