Input.getkey code not working

It’s almost always better to post code using code tags rather than screenshots.

When you have a lot of errors that look like they might be related to code structure (e.g. things talking about curly braces), you usually want to start with the first error, because sometimes the first one also causes the later ones. But your screenshot doesn’t allow us to see you first error message. You should scroll up and start there.

I notice that your curly braces are not indented properly in the portion of your code that you showed, which makes it seem more likely that you may have incorrect braces somewhere. Being disciplined about indentation helps to avoid this type of error.