If what you want to achieve is a validation check, enforcing input is not a very user-friendly approach, as user type and is unable to figure out what is wrong.
A better approach for validation should be a validation check and error with a proper explanation about what is wrong in typed input.
(if your request is required for other reason, then feel free to ignore my comment)
for validation -
you can use input pattern:
<input matInput type="text" [formControl]="your-control-name" pattern="[ a-zA-Z]*">
and as part of validation errors check you handle the pattern error:
<mat-error *ngIf="formHandlersList[i].hasError('pattern')">
Only alphabetic characters are allowed
the full block of html looks something like this -
<mat-form-field appearance="standard" [style.width.px]="120">
<input matInput type="text" [formControl]="your-control-name" pattern="[ a-zA-Z]*">
<mat-error *ngIf="<your-form-control-object>.hasError('pattern')">
Only alphabetic characters are allowed
</mat-error>
</mat-form-field>