`Key` inputs (with modifier keys) continuing if the "key release order" incorrect
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version and features
Version 0.17.2 with default features.
## Relevant system information
```
-` cpphusky@archHusky
.o+` ------------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: 21LF (ThinkBook 14 G6+ AHP)
`+oooooo: Kernel: Linux 6.17.1-arch1-1
-+oooooo+: Uptime: 5 days, 19 hours, 27 mins
`/:-:++oooo+: Packages: 1055 (pacman)
`/++++/+++++++: Shell: fish 4.1.2
`/++++++++++++++: Display (LEN8AB1): 3072x1920 @ 1.75x in 15", 120 Hz]
`/+++ooooooooooooo/` WM: niri (Wayland)
./ooosssso++osssssso+` Terminal: alacritty 0.15.1
.oossssso-````/ossssss+` Terminal Font: Fira Code Retina (11pt)
-osssssso. :ssssssso. CPU: AMD Ryzen 7 8845H (16) @ 5.14 GHz
:osssssss/ osssso+++. GPU: AMD Radeon 780M Graphics [Integrated]
/ossssssss/ +ssssooo/- Memory: 7.37 GiB / 27.21 GiB (27%)
`/ossssso+/:- -:/+osssso+- Swap: 2.20 GiB / 16.00 GiB (14%)
`+sso+:-` `.-/+oso: Disk (/): 555.51 GiB / 932.87 GiB (60%) - btrfs
`++:. `-/+/ Battery (L23X4PG10SW): 96% [AC Connected]
.` `/ Locale: en_US.UTF-8
```
## What you did
1. Just run the [`keyboard_input` example](https://github.com/bevyengine/bevy/blob/main/examples/input/keyboard_input.rs)
2. Make an `?` key input with the following steps. **`Shift` should be released before `/`**.
1. Press down `Shift`;
2. Press down `/`;
3. Release `Shift`;
4. And then release `/`.
## What went wrong
The console continuously outputs `INFO keyboard_input: '?' currently pressed` even if I have already stopped any keyboard input.
## Additional information
If I want to stop the info, just press down `Shift`+`/` again and release them in the correct order: `/` first, and `Shift` then.
This behavior is quite unreasonable. I think when I released `Shift` the `?` input should be regarded as "released", because without `Shift` we can never input `?` character.
Contributor guide
Assessment
This issue has not been assessed yet.