document.addEventListener('keydown', function(event) {
  if (event.key === 'F2') {
   
document.querySelector("#mat-input-0").focus()
  }
});document.addEventListener("keydown", function(event) {
  if (event.keyCode === 113) { // Código da tecla F2
    document.querySelector("#prompt-textarea").focus();
  }
});