text: // VARIABLES
  const car = {
      make: 'Jordan Ford',
      model: '2019 Mustang GT Premium',
      color: 'green',
      mileage: 0,
      isWorking: true,
  
      driveToWork(){
          alert(`Old Mileage: ${this.mileage}`);
          this.mileage += 10;
          alert(`New Mileage: ${this.mileage}`);
      },
  
      driveAroundUSA(){
          alert(`Old Mileage: ${this.mileage}`);
          this.mileage += 7000;
          alert(`New Mileage: ${this.mileage}`);
          alert('Car needs needs so work!');
          this.isWorking = false;
      },
  
      getTuneUp(){
          alert('Car is good to go!');
          this.isWorking = true;
      },
  
      honk(){
          alert("Honk! Honk!");
      }
  };
  
  // FUNCTIONS
  // Logs all of our car's current stats to the console
  reWriteStats=()=>{
      console.log(`Make: ${car.make}`);
      console.log(`Model: ${car.model}`);
      console.log(`Color: ${car.color}`);
      console.log(`Mileage: ${car.mileage}`);
      console.log(`IsWorking: ${car.isWorking}`);
      console.log('-----------------------------');
  
  }
  
  
  // MAIN PROCESS
  // Captures keyboard input. Depending on the letter pressed it will "call" (execute) different functions.
  document.onkeyup = (event) => {
      // Captures the key press, converts it to lowercase, and saves it to a variable
      let letter = String.fromCharCode(event.keyCode).toLowerCase();
  
      if (letter === "d") {
          car.driveToWork();
          reWriteStats();
      }
  
      if (letter === "r") {
          car.driveAroundUSA();
          reWriteStats();
      }
  
      if (letter === "t") {
          car.getTuneUp();
          reWriteStats();
      }
  
      if (letter === "h") {
          car.honk();
          reWriteStats();
      }
  
  }