I have reproduced the issue on StackBlitz with minimal code.
Step 1: enter a word in the input then press the keyboard enter button
Step 2: a modal will be displayed
Step 3: press the enter button on the keyboard
in step 2 i get the bellow error:
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ng-untouched: true'. Current value: 'ng-untouched: false'.
step 3 should close the modal, but the modal closes then is reopened, however, when i press the confirm button with the mouse, it closes the modal properly.