To craft in the inventory, right click with an ingredient to deposit it into the crafting box (left click to remove an ingredient). The crafting box will after a short time output the result, and you can pick it up with shift left click or shift right click. Structures work the same.