I can open chests if both hands are empty but not if I'm holding anything.
This goes for both sneaking on the ground and pressing shift + space while flying
What I expected to happen was...:
being able to open chests while holding an item
What actually happened was...:
i can only open chests while not holding anything in any of my hands. It seems as if i want to use the item in my hand even if it cannot be used.
Steps to Reproduce:
1. turn on togglable shift,
2. hold any item in any of your hands
3. try opening a chest
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue in MC-4196, so I resolved and linked this ticket as a duplicate.
However, that ticket has already been resolved. That means that this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Bro it is the meaning u cant interact while sneaking. Because this way you can place for example item frames on wooden doors and chests. BIG STOOPOO