JSFiddle - React, Tailwind, and code Playground

HTML

try to hit 'F12'

JavaScript

document.onkeydown = function(e) {
  if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117) || e.keyCode === 123) { //Alt+c, Alt+v will also be disabled sadly.
    alert('not allowed');
    e.preventDefault();
  }
  return false;
};


window.oncontextmenu = function (e)
{
    alert("You have tested if your right-mousebutton is still working. This alert confirms it's still working, have a nice day!")
    e.preventDefault();
    return false;     // cancel default menu
}