Need help with mole unearthers please

https://www.codecademy.com/paths/create-video-games-with-phaser/tracks/game-dev-learn-javascript-function-and-scope/modules/game-dev-project-functions-and-scope/projects/mole-unearther

the game seems to pause whenever I hit the j key after starting it up, I’m not very good at this yet but please help where you can her is what I have written so far:

update() {

if (timeLeft <= 0) {

  // Provided for user

  this.scene.stop('GameScene');

  this.scene.start('EndScene');

}

// user successfully hit the mole, so reward the user with 5pts

const applyHitReward = () => {

  // display how many points the user will gain

  this.displayRewardText();

  

  // display the new score to the user

  this.updateScoreText();

};

// user missed the mole, so penalize the user by taking away 5pts

const applyMissPenalty = () => {

  this.displayPenaltyText();

  // display the new score to the user

  this.updateScoreText();

};

const onBurrowHit = (key) => {

  if (key = currentBurrowKey){

    applyHitReward();

    this.relocateMole();

  }

}

if (isPaused === false) {

  // check each burrow's location if the user is hitting the corresponding key

  // and run the handler to determine if user should get a reward or penalty

  if (Phaser.Input.Keyboard.JustDown(gameState.jKey)) {

      onBurrowHit(j);

  } else if (Phaser.Input.Keyboard.JustDown(gameState.kKey)) {

      onBurrowHit(k);

  } else if (Phaser.Input.Keyboard.JustDown(gameState.lKey)) {

      onBurrowHit(l);

  }

}

if (Phaser.Input.Keyboard.JustDown(gameState.spaceKey)) {

}

}

Same happens to me. Something with this.relocateMole(); is broken. If you remove that line the game will not pause but the mole will stay in the same place