After receiving the code below:
<mat-form-field appearance="fill" style="margin: 0px 20px;font-size:13px;">
<input matInput type="text" aria-label="Number" placeholder="{{'Home.search' | translate }}"
[formControl]="myControl" [matAutocomplete]="auto" (ngModelChange)="getByKeyword($event)">
<mat-option *ngFor="let testCity of testCities" [value]="testCity.city"
(click)="testFunction(testCity.city, testCity.countryIso, testCity.cityId)">
I am curious if there is a way to trigger "testFunction" without using (click) but instead by detecting when the input field is no longer being hovered over or with each new letter typed.