Nancy Liang

var ar=new Array(33,34,35,36,37,38,39,40); $(document).keydown(function(e){ var key = e.which; //console.log(key); //if(key==35 || key == 36 || key == 37 || key == 39) if($.inArray(key,ar)) { e.preventDefault(); return false; } return true; }); window.onkeydown = function(e) { return !(e.keyCode == 32 || (keyCode >= 37 && keyCode



$13.25 by nancyliang