Make sure to correctly use code tags, see this sticky thread . Also more information about the error, e.g. the whole error message would help.
All that said, it seems there is a closing curly brace “}” right below the private bool jumpKeyWasPressed;
line that shouldn’t be there (that “closes” the class body right there and should be at the end of the code).