variable not appear in inspector

#pragma strict
var moveUp :KeyCode;
var moveDown :KeyCode;

var speed :float=10;

functionUpdate(){
if(Input.GetKey(moveUp))
{
// player keatas
}
elseif(Input.GetKey(moveDown))
{
// player kebawah
}
else
{
// player diam
}
}

in tutorial,after this script is create,variable moveUp,moveDown,speed should be appear in inspector so we can put keyboard control.but when i try by myself using monodevelop,the variable not appear.i’m already follow the step in tutorial that i watch but still not appear.i’m already run(no error) and save the script but still not appear

sorry for my bad grammar and if this is in wrong section

public var moveUp :KeyCode;
public var moveDown :KeyCode;
public var speed :float=10;

To be visible in the inspector a variable must be public.