Smooth keypress event handeling in Javascript?
<p>I know its possible but I cant seem to figure it out. In its basic form I have a canvas circle moving 5 pixels every key event however this seems to be rather slow at firing and really jumpy, plus it stalls when changing key or changing from rapid key press to holding down. </p>

<p>So can someone enlighten me of a way ofwhich this could work without it stuttering?</p>

<p>Thanks.</p>
