Hi,
First of all, I don't get why you need this, but okay.
What you do is you put max release or reverb with lots of decay on your instrument, when the key is pressed, automate the volume of the instrument to be 0, when the key is not pressed, automate the volume to be more than 0.
Hope I helped.