You can use I to also close the inventory. I though about pressing X again to close the crafting area. I see like a shortcut key for optional use