problem with code

  • Use code-tags when posting code.

  • Don’t post pointless polls

  • Be aware that C# is case-sensitive. “input” is not the same as “Input”.

  • Don’t come to the forums trying to learn how to fix basic mistakes, trying following some basic C# tutorials. The “KeyCode” thing is just plain wrong. If you’re following a tutorial, go back to the tutorial and look at it again or look at code examples of it being used.

  • Use the Scripting Reference and search for the problem thing. In your case, searching for “KeyCode” shows you how to use it: Unity - Scripting API: KeyCode

  • Errors tell you the exact line and column numbers so you already have that info (above it’s Line 20, Column 13 and Line 20, Column 30)

I hope some of that helps.