{"size": 870, "ext": "js", "max_stars_repo_path": "projetos/key-event/script.js", "max_stars_repo_name": "DaniloWA/Portfolio", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "projetos/key-event/script.js", "max_issues_repo_name": "DaniloWA/Portfolio", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "projetos/key-event/script.js", "max_forks_repo_name": "DaniloWA/Portfolio", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.1875, "max_line_length": 79, "alphanum_fraction": 0.6482758621}
const areaPressiona = document.getElementById("areaPressiona")
const areaVezes = document.getElementById("areaVezes")
const areaHistorico = document.getElementById("areaHistorico")
let contadorLinha = 0
let contador = 0
 
document.body.addEventListener('keypress', function (event) {
    const key = event.key;
    const code = event.keyCode;
    digitos(key,code)
    areaHistorico.scrollTo(0,99999)
    
    console.log(`Key: ${key}, Code ${code}`);
  });

  function digitos(key,code){
    areaPressiona.innerHTML = "Tecla : '" + key + "' Code : '" + code +"'"
    areaHistorico.innerHTML += "Tecla : '" + key + "' Code : '" + code + "'\n" 

    contador += 1
    contadorLinha += 1;

    areaVezes.innerHTML = contador
  }

  function limpar() {
    areaPressiona.innerHTML = " "
    areaHistorico.innerHTML = " "
    areaVezes.innerHTML = ""
    contador = 0;
  }
 