Apply force then slowly back off

I want to apply force to my ship then as the key is released, slowly back it off. It’s a sidescrolling ship game if you get what I mean by it. So uparrow is pressed, it gets pushed up but after it’s let go, it slows down to a stop, doesn’t keep going, and isn’t instantaneous

Current state

function Update () {
if (Input.GetKey (KeyCode.UpArrow)){
    rigidbody.AddForce (Vector3.up * 100);
}


}

Increase the drag value.

u can write say if the button is up then reduce the amount of the Gravity to this character :smiley:

Increase the drag value.

Right, add drag then take it off. Can’t touch gravity really as it’s set to 0.