The inventory and storage windows can't be closed using the inventory key if it's set to tab. Had tab set as my inventory key for years and never had this problem, hope this could be fixed!
Related issues
Comments

Oh thank you! Did a quick search and didn't find this one.
Thank you for your report!
We're actually already tracking this issue at MC-145691, so we will resolve and link this ticket as a duplicate.
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.