Repository: angular
Issue: strictDomEventTypes uses incorrect types for keyup.Enter style outputs
Labels: area: compiler,P3,compiler: template type-checking

<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅

Oh hi there! 😄

To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.

🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->


# 🐞 bug report

### Affected Package
<!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->
<!-- ✍️edit: --> The issue is caused by package @angular/compiler


### Is this a regression?

<!-- Did this behavior use to work in the previous version? -->
No

### Description

When setting `"strictDomEventTypes": true` output events like `keyup.Enter` don't use the correct typing

## 🔬 Minimal Reproduction
<!--
Please create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-ivy
-->
[https://stackblitz.com/edit/angular-ivy-jaygka?file=src%2Fapp%2Fapp.component.html](https://stackblitz.com/edit/angular-ivy-jaygka?file=src%2Fapp%2Fapp.component.html)

<!--
If StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue.
A good way to make a minimal reproduction is to create a new app via `ng new repro-app` and add the minimum possible code to show the problem.
Share the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.

Issues that don't have enough info and can't be reproduced will be closed.

You can read more about issue submission guidelines here: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-submitting-an-issue
-->

## 🔥 Exception or Error
<pre><code>Argument of type 'Event' is not assignable to parameter of type 'KeyboardEvent'.
</code></pre>

But the type should be inferred as `KeyboardEvent`


## 🌍  Your Environment

**Angular Version:**
<pre><code>
Angular CLI: 11.1.3
Node: 14.13.1
OS: darwin x64

Angular: 11.1.2
... animations, common, compiler, compiler-cli, core, elements
... forms, language-service, localize, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: <error>

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1100.6
@angular-devkit/build-angular   0.1101.3
@angular-devkit/core            11.0.6
@angular-devkit/schematics      11.0.6
@angular/cdk                    9.0.1
@angular/cli                    11.1.3
@angular/google-maps            11.0.3
@schematics/angular             11.0.6
@schematics/update              0.1101.3
ng-packagr                      11.0.3
rxjs                            6.6.3
typescript                      4.1.3
</code></pre>

**Anything else relevant?**
<!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->

<!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->