So you know, it doesn’t matter that you’re making something 2D, this post isn’t about 2D features at all as it’s you producing syntax errors in C# so should be posted in the scripting forum.
Always posting code using code-tags because then, in the very least, line numbers make sense. Don’t do arbitrary formatting such as bold/colour etc.
Honestly though, don’t use the string overload of that method, use the keycode overload because then at least you have a selection of keys and don’t need to spell it correctly.
Also, the link I just have you provides a link to the string key codes you can use but I’d stay away from them.