Steps to reproduce:
1. Open attached project “IN-151262”
2. Make sure “Assets/FPS/Scenes/MainScene” is selected in the scene list
3. Enter the Play mode
4. Press "W" to start running forward
5. With "W" still held press ALT + Windows Key + G to bring up the Xbox Game Bar overlay (This works with other overlays as well)
6. Observe the Game view
7. Refocus Unity, press some other keys to except “W”
8. Press "W" and release it
Actual result: Input does not reset on loses focus or regains focus, the character runs without “W” being held after enabling overlay, and the only way to stop it is by pressing the same character
Expected result: Input resets on unfocus
Reproducible with: 1.8.0 (6000.0.0f1, 6000.0.82f1), 1.20.0 (6000.0.0f1, 6000.0.82f1, 6000.3.22f1, 6000.5.9f1, 6000.6.0b9, 6000.7.0a5)
Reproducible on: Windows 11, Tahoe 26.6.1 (M1 Max)
Notes:
- This reproduces in both the Editor and the Player
- This does NOT reproduce when ALT + TAB to unfocus Unity
- Reproducible with Spotlight on macOS