added conditions to open inventory and crafting
added possibility to exit inventory and crafting using same shortcuts than the ones used to enter them; solved tooltip bug