Toggle gravity controller

So basically I want to take this module and make it toggleable, how would I do that