What have i done wrong??? plaese help me

it says: All compiler errors have to be fixed before you can enter playmode. when i tap the play botton

and this i my code what have i done wrong:

using UnityEngine;
using System.Collections;

[AddComponentMenu("Player Controller")]
public class PlayerController : MonoBehaviour {
	
	public float moveSpeed;
	public float jumpHeight;
	
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	if (Input.GetKeyDown (KeyCode.space)) 
		{
		GetComponent<rigidbody2D>().velocity= new Vector2 (0, jumpHeight);
		}
		
	}
}

also:

in the inspectror my to float thing won’t show up (move speed and jump height) but that is just because my code is wrong right??

sorry for the spelling i am not that good to english :wink:

It’s KeyCode.Space