How to create a toggle mouse button? and how to make vibration during toggle mode?

How to create a toggle mouse button? and how to make vibration during toggle mode?

I have two 3D flight combat games in which I assign boost to the middle mouse button in both.  The thing is in order to continuously boost I have to hold onto the middle mouse button.  I don't want to do that, since those games do not provide a toggle option, I want wanted to create that option via the X1 Control Panel and so far it has left scratching my head.

The only part I got right within the X1 Control Panel by changing Middle Mouse Press to Middle Click Down and Middle Mouse Release to Do Nothing.  So it would look like this in Expert Mode:

Middle Mouse Press
> Middle Click Down
Middle Mouse Release > Do Nothing

When you click on Middle Click Down, it shows that I have it set to Press; so it would look like this:

#1      Mouse Click      3 (Middle Click)      Press

That is the part I got right, the problem now is my ship runs boost in an infinite loop, I want to end the infinite loop by pushing the same button that initiated the loop.  How would I do that in X1 Control Panel? Also could you please illustrate with screen shots or do something similar to what I did with those two.