Assuming the object is destroyed when it explodes you can do :
on X pressed with condition global var=0 : action=spawn grenade and set global var=1
on grenade destroyed: set global var=0
The problem with that is you are counting on it to be destroyed and may come across bugs when it doesn't get destroyed or something.
You can also use a timer if that is relevant :
on X pressed with condition timer=0 (on another object not the grenade) : spawn grenade, start timer
Note you can't use the object for timer condition, use system compare 2 values, object.timer.currenttime("timername")=0