Here I stopped the event bubbling for up/dn/left/right keys:
$(document).on("keydown", function(e) {
if(e.keyCode >= 37 && e.keyCode <= 40) {
e.stopImmediatePropagation();
return;
}
});
I also tried e.preventDefault or event.cancelBubble = true from the answers above, but they had no impact.