I would like to make a game in html and javascript that uses the arrow keys to move. I have already tried
window.onkeydown = function(e) { if (e.which == 37) { doleftarrowkeystuff(); } if (e.which == 39) { dorightarrowkeystuff(); } }; but that stops one key when the other is pressed.
Any help would be appreciated.