'GetKey' Not Working

If ( Input.GetKeyDown(KeyCode.d) )
{

}

Why isn’t this working? I just get heaps of errors in the console. I’m following a tutorial on Youtube and I have quite a lot of coding experience, just not in C#. Help please!

Should be KeyCode.D, not KeyCode.d.
Case-sensitive.

d should be uppercase :slight_smile:

THANKS!