I have a keyboard that contains dedicated volume keys, when changing the computer volume using them while the Minecraft window is active, the game freezes for a few seconds causing the game to be unplayable during that time. This same problem also occurs in the menus and GUI for Minecraft.
Another problem caused by this is that if you are moving while you do this, then your game may still think you are holding down the key you had pressed when you changed volumes until you press and release the key again.
Sorry for the quiet computer audio in the attached video and the loud keyboard, I didn't configure my OBS after I reinstalled it.
Thank you for your report!
However, this issue is a Duplicate of MC-166224.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki