The behavior you are describing is that of a momentary button. Is this for control?
See this for some of the plethora of reasons this isn't a great idea.