Yep, multiple games have this issue, with the inventory this is solved because you can also press I to open and close the inventory, but with the shop it's annoying. So either add an X button or use a keyboard shortcut for that.