How does umbra cane work?

Does it have to be equipped in hand for it to work, inventory or one of your 6?

Actualy have it equipped