build/app.js
/**
   * Calls various class functions depending upon the pressed key
   * @param {Event} e - The keydown event to evaluate
   */
Calls various class functions depending upon the pressed key
@param {Event} e - The keydown event to evaluate
Calls various class functions depending upon the pressed key @param { Event } e - The keydown event to evaluate
handleKeyDown(e) {
    if (e.keyCode === 27) {
      this.handlePauseKey();
    } else if (e.keyCode === 81) {
      this.soundButtonClick();
    } else if (this.movementKeys[e.keyCode]) {
      this.changeDirection(this.movementKeys[e.keyCode]);
    }
  }
handleKeyDown ( e ) { if ( e . keyCode === 27 ) { this . handlePauseKey ( ) ; } else if ( e . keyCode === 81 ) { this . soundButtonClick ( ) ; } else if ( this . movementKeys [ e . keyCode ] ) { this . changeDirection ( this . movementKeys [ e . keyCode ] ) ; } }
Calls various class functions depending upon the pressed key
 @param {Event} e - The keydown event to evaluate
Calls various class functions depending upon the pressed key @param { Event } e - The keydown event to evaluate
// ESC key // Q