mat form field javascript + get key events code example
Example: how to get mat input value on keyup javascript
<input type="text" class="form-control" (input)="onSearchChange($event.target.value)">
onSearchChange(searchValue: string): void {
console.log(searchValue);
}