title: Alternative to arguments.callee
body: <p>I have an <em>EventListener</em> that listens to the entire document and records keystrokes, but I want to remove this Listener when certain conditions are met. </p>
  
  <p>The following is a snippet of my code:</p>
  
  <pre><code>document.addEventListener('keyup', function(e) {
      var letter_entered = String.fromCharCode(e.keyCode).toLowerCase();
      player.makeGuess(letter_entered);
  
      if(player.win_status === true || player.lose_status === true) {
          document.removeEventListener('keyup', arguments.callee, false);
      }
  });
  </code></pre>
  
  <p>This works, however according to the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments/callee" rel="noreferrer">Mozilla Developer Docs</a> this method has been deprecated. </p>
  
  <p>I'm aware that I can simply name the function, but <strong>is there an alternative that would allow me to continue using the unnamed function</strong>?</p>