Animation controller

How do I define key names? eg if I am using left control to fire a weapon how do I tell Unity this? Can I just say keycode.leftcontrol = “Fire”?

Take a look at Input.GetKey and Input.GetKeyDown

Check out the Input Manager:

Edit → Project Settings → Input

After choosing this from the menu, look in the Inspector.

You’ll see an item named Axes, which can be expanded and edited.

This is where all the inputs (and their behaviors) are defined.