Reproduction steps:
1. Open the attached “221122_LeftAltBug” project
2. Open the “Scenes/SampleScene” Scene
3. Alt-Tab to a different window and go back to the Unity editor
4. Enter Play Mode by pressing the Play button
5. Press Left Alt key and observe the console
6. Exit Play Mode
7. Alt-Tab to a different window and go back to the Unity editor
8. Enter Play Mode by pressing the play shortcut (Default: Ctrl+P)
9. Observe the console
Expected result: The console always prints out false and prints out true only when Alt key is pressed
Actual result: The console prints out true until Alt key is pressed and released
Reproducible with: 1.2.0, 1.3.0, 1.4.1, 1.4.4 , 1.5.0 (2020.3.44f1, 2021.3.17f1, 2022.2.3f1, 2023.1.0a26, 2023.2.0a6)
Reproducible on: Ubuntu 20.04.5, Ubuntu 22.04.2
Not reproducible on: Windows 10