Tip Cepat Angular: Mengikat Kunci Khusus ke Keyup dan Keydown Events

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