The viewer doesn’t allow to disable some controls explicitly, but you can achieve this by capturing JavaScript key down events, and not propagating them further for keys that you would like to disable. For example, place the body-end.html
file with the following code in your scene directory to disable Q, E, PgUp and PgDown keys:
<script>
function onKeyDown(event) {
switch (event.keyCode) {
case 34: // page down
case 81: // e
case 33: // page up
case 69: // q
event.stopPropagation();
break;
}
}
document.addEventListener('keydown', onKeyDown, true);
</script>