Help with input code please (c#)

Hi Guys,
I am trying to write a script where when i press enter i go to the next scene, but i cant seem to get it to work.

using UnityEngine;
using System.Collections;

public class MenuToLevel : MonoBehaviour {

	void Start () 
	{
		
	}
	
	// Update is called once per frame
	void Update () 
	{
		
	}

	if(Input.anyKeyDown)
		{
			Application.LoadLevel("1"); 
		}

}

Thank You

The if has to actually be inside the Update() function. Does this even compile?