When I press the sound keeps countinously playing

When I press the key the sound keeps continuously playing and if I again press the key it overlap and play multi sound. I tried many ways but I can’t solve it.I made that sound to loop.I want to stop looping when I release that key

Would work better like this:

Hi ClockworkOcean,
Thanks a lot it works perfectly.