Inventory now closes upon pressing the escape key.