It says there is an error on (2,12) which is after the update,but i'm not sure what to do in order to fix it

public float
void Update()
{

}
Speed = 5.0f;

if(Input.GetKey(KeyCode.RightArrow))
{
	transform.position = new Vector3(speed * Time.deltaTime,0,0);
}
if(Input.GetKey(KeyCode.LeftArrow))
{
	transform.position = new Vector3(speed * Time.deltaTime,0,0);
}
if(Input.GetKey(KeyCode.DownArrow))
{
	transform.position = new Vector3(0,speed * Time.deltaTime,0);
}
if(Input.GetKey(KeyCode.UpArrow))
{
	transform.position = new Vector3(0,speed * Time.deltaTime,0);
}

}

‘Speed = 5.0f’ is outside of any function. If this is one-time initialization code, then put it start. If it is declaration code, move it up in the file and add ‘float’ to the beginning.