how to spawn multiple enemies with a key press?

Hi I’m currently working on a 2 player tower defense game and i need to know how to spawn enemies by hitting a certain key I also have three enemies so after hitting the key 1 a small group of one type of enemy will appear then if i hit 2 another type up to 3 i really could use a hand as i am not confident when it comes to scripting oh and it needs to be in c# thank you.

You can use the function Instantiate to create a clone of a object.
And if you want to create a number of clones, you run the Instantiate function in a loop.

So, pressing the key ‘1’ creates 3 clones (warning, pseudo code!):

if(Input.GetKeyDown(KeyCode.Alpha1) == true)
{
    for(int i = 0; i < 3; ++i)
    {
     Instantiate(OrginalObject, new Vector3(i * 10.0f, 0.0f, 0.0f),  Quaternion.identity);
    }
}

Maybe this will poin you in the right direction of how you can/want to do it.