Dica rápida angular: vinculando chaves específicas aos eventos KeyUp e Keydown

<input (keydown)="onKeydown($event)">
onKeydown(event) {
  if (event.key === "Enter") {
    console.log(event);
  }
}
Wide-eyed Wasp