JQuery method:
$(document).bind('keydown keypress', function(e) {
if(e.keyCode > 36 && e.keyCode < 41) e.preventDefault();
});
Scrolling the page when you press the arrow keys (key 37-40) (when you press the key) and when you hold them (press). So, if that happens, we prevent the default evente.preventDefault();
source
share