error CS1519: Unexpected symbol `if' in class, struct, or interface member declaration

using UnityEngine;
using System.Collections;

public class cube : MonoBehaviour
{
public float moveSpeed;
public rigidbody rb;

// Use this for initialization
void Start () 
{
	moveSpeed = 10f;
	rb = GetComponent<rigidbody> ();
}

// Update is called once per frame
void Update () 
{
	transform.Translate(moveSpeed*Input.GetAxis("Horizontal")*Time.deltaTime,0f,moveSpeed*Input.GetAxis("Vertical"));
}
if(Input.GetKeyDown("Jump"))
{	
   rb.velovity = new Vector3(0,8,0);
}

}

Your “if (Input.GetKeyDown…)” block is not inside any method. Generally, input is processed inside the Update() method, so it should be moved to that location.