title: Stop Key from doing its Default Action - TamperMonkey JavaScript
body: <p>I'm trying to add a snippet to the custom script I made to fix some faulting shortcuts on the system I work on.</p>
  <p>This snippet should deactivate the default action that <code>R</code> does when pressed on the keyboard.</p>
  <p>I'm trying this, but it has no effective action:</p>
  <pre><code>   // STOP *R* CLICKING UNDO
  (() =&gt; {
      window.addEventListener('keydown', (e) =&gt; {
          if (e.keycode == '82' &amp;&amp; !e.shiftKey &amp;&amp; !e.ctrlKey &amp;&amp; !e.altKey &amp;&amp; !e.metaKey) {
              ;
          event.preventDefault();
          }
      });
  })();
  </code></pre>
  <p>What am I doing wrong? Am I missing something?</p>