Some idea how to stop envgen?

I would like it to stop when I release a key before It reaches the end of the duration. A kind of reset.

I would apreciate any clue... Thanks,

x:x