Closing menus with spacebar will still send certain assigned actions through afterwards
If the user assigns either "Jump" or "Inventory" to the spacebar key and then pushes spacebar to close out of an in-game menu the assigned action will still be processed immediately after the menu closes.
In the case of assigning "Jump" to the spacebar, once you have closed out of the inventory of a container by using spacebar your character will jump immediately afterwards.
With "Inventory" assigned to spacebar, pushing it to close out of a menu instead brings up your inventory first. Then a second push of the spacebar closes out of the menus.
My suggestion would be to just always make the "Activate" key close out of menus rather than spacebar. That would feel most natural to the user IMO. ( I.E. Pushing the activate key on something can both bring-up and close-out of menus.)
(RM-4016 from redmine: created on 2017-08-09 by Denver Woodcock, , closed on 2017-09-28 by scrawl ., relates #1555 (closed))