Reset modifiers when the window active state changes (#28348)
Conrad Irwin
and
Dino
created
Closes #23449
Release Notes:
- Fixed a bug causing shift to get stuck down when the window focus
changes
---------
Co-authored-by: Dino <dinojoaocosta@gmail.com>