Made the inventory closing/opening by key and not by button