JSFiddle - React, Tailwind, and code Playground

HTML

<div class="bg">
<div class="a t" CONTENTEDITABLE>hold right arrow</div>
<div class="b t" CONTENTEDITABLE>hold right arrow > arrows, page up, etc scroll the page... how to stop that?</div>
<div class="c t" CONTENTEDITABLE>hold right arrow</div>
</div>

CSS

.bg {width:2000px; height:2000px; border:solid 1px}

.t {position:absolute; width:80px; height:80px; background:orange; font-size:12px}

.a {top:20px; left:20px}
.b {top:20px; left:120px}
.c {top:120px; left:20px}

JavaScript

$(document).on('keydown',function(e){
	console.log(this, e.target);
    var key = e.charCode || e.keyCode;
    if(key == 16 || key == 32 || key == 33 || key == 34 || key == 35 || key == 36 || key == 37 || key == 38 || key == 39 || key == 40 ) {
	    e.preventDefault();
	} else {}
});
$('.b').on('keydown', function(e) {
   e.stopPropagation(); 
});