keyup angular code example
Example 1: angular keydown
<input (keydown)="onKeydown($event)">
Example 2: onclick event in angular
(click)="myClickFunction($event)"
<input (keydown)="onKeydown($event)">
(click)="myClickFunction($event)"