How can i turn on a particle emitter with a single key?

I asked a similiar question posting up my current script etc… here

It would appear nobody could help me, so rather than asking somebody to help me with my current script. Can somebody help me in writting a simple piece of code that turns on a particle emitter with a simple press of the “l” key.

This is for a charity project im working on, totally non profit, no financial gain so ANY help what so ever would be amazing.

thanks

To emit one shot:

var myParticle: ParticleSystem;
var amountToEmit: int;

function Update()
{
     if(Input.GetKeyDown("l"))
     {
          myParticle.Emit(amountToEmit);
     }
}

To TurnOn Emitter:

   var myParticle: ParticleSystem;
    var amountToEmit: int;
    
    function Update()
    {
         if(Input.GetKeyDown("l"))
         {
              myParticle.enableEmission = true;
         }
    }