title: Mat-Angular dialog: close with escape not working
body: <p>I use mat angular (v 11.12.11)</p>
  <p>I have an issue that ESCAPE click not close the dialog.
  <strong>In angular demo page - it works well.</strong></p>
  <p>What can be the reason?</p>
  <p>(I search after any place in the system which listen to ESCAPE clicking and may be disrupt the closing but there was no one)</p>
  <p>What can be the root cause of this bug?
  I can attach code sample but actually it happen in all my dialogs.</p>
  <pre><code>import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
  
  @Component({
      selector: 'dialog-a',
      template: `
         &lt;p&gt;
           dialog-a works!
         &lt;/p&gt;
      `,
      styleUrls: ['./dialog-a.component.scss'],
      changeDetection: ChangeDetectionStrategy.OnPush
      })
      export class DialogAComponent implements OnInit {
  
      constructor() { }
  
      ngOnInit(): void {
      }
  
    }
  </code></pre>
  <p>Open dialog code:</p>
  <pre><code>constructor(private dialogMat: MatDialog) {}
  
  openDialog3(){
      return this.dialogMat.open(DialogAComponent, {});
  }
  </code></pre>
  <p>This is my ng version details:</p>
  <p><a href="https://i.stack.imgur.com/pWMT1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pWMT1.png" alt="enter image description here" /></a></p>