How to add on off functionality to an item?

I want to add functionality to a mod I created. I want the player to be able to press a key to enable and disable a buff that an item gives them.

Specifics are I created a mod called Predator Goggles. Gives the Snow Owl buff. Right now it is always on while the player is wearing them.
I want the player to be able to press a key, say E for instance, that will toggle the Snow Owl buff on and off while the goggles are being worn.

I am guessing this will require logic in the graph. But I am unsure if it goes in the graph of the buff or of the primal item.

Any hints or help would be appreciated.

Thanks in advance.