Ok so I am trying to restart the scene on R being pressed and for some reason, I am getting errors like, well in the unity console: \"unexpected symbol \'}\' \" and \"parsin
I can say that the code below might be the easiest method;
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
You must ask the scene manager to load the scene using LoadScene
if (Input.GetKeyDown(KeyCode.R))
SceneManager.LoadScene( SceneManager.GetActiveScene().buildIndex ) ;
You were just retrieving the build index of the current scene.
Also, about yourcompilling error, you have forgotten the semi-colon at the end of the line ;)
just close the window and restart unity application, simple as that