Reproduction steps:
1. Open the attached "1404852.zip" project
2. Open the "SampleScene" Scene
3. Build and Run the project on the WebGL platform
4. Open the Developer tools in the browser
5. Press the "F6" key
6. Left-click on the developer tools window, then left-click on the build window
7. Press any key
8. Observe the Console
Expected result: The "F6 is triggered" message isn't displayed
Actual result: The "F6 is triggered" message is displayed
Reproducible with: 2019.4.38f1, 2020.3.33f1, 2021.3.0f1, 2022.1.0f1, 2022.2.0a10
Reproducible with: Google Chrome, Firefox
Notes:
- The "F6 is triggered" message gets displayed every time when repeating the 6th and 7th steps
- Managed to reproduce with "F1", "F3", "F6" function keys on Google Chrome and with "F3", "F6" function keys on Firefox