If you open the crafting recipe book and hit the bound "Enter" key to close the inventory entirely, it instead toggles between opening and closing the recipe book. The player has to then press "Esc" to instead close the inventory.
Seems similar to a past bug that affected the "Tab" key, except this time it is affecting the "Enter" key.
Comments 4
This is still an issue in 1.16.2. Binding the inventory open/close to "enter" still toggles between the inventory and the recipe book if the recipe book is open, instead of closing the inventory entirely. This is particularly frustrating as using the arrow keys and the right hand side of the keyboard generally means that to close the inventory after using the recipe book requires shifting to the far left of the keyboard to use the "esc" key.
There have been some changes to the open/closing of the recipe book and inventory, so please check if this is still an issue for you in 20w28a.