mat input keypress event 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);
}