Is it possible to reset macro on KeyRelease

Hi, Im looking for a way to reset à loop macro on keyrelease, i feel like it was the way my macro used to work on GSE2 and im a little lost with the new update.