const teclaslist = document.querySelectorAll("input[type=button]")
const tel = document.querySelector("input[type=tel")
function teclar (vtecla) {
  tel.value+=vtecla;
}
for (let t = 0; t < teclaslist.length; t++) {
  teclaslist[t].onclick = () => {
    teclar(teclaslist[t].value)
  }
  teclar.onkeydown = function () {
    teclar.classList.add('ativa');  
  }
  teclar.onkeyup = function () {
    teclar.classList.remove('ativa');
  }
}