flying car script

I am making a race car game but the cars are flying cars and I want to make it so that you can control your altitude like a helicopter but drive/fly like a car

Use forces. when the user presses a button, use AddForce in directions such that the car can accelerate. Forces can be applied to increase the altitude, rotate the car etc. Forces are better than using something like transform.translate cause then you will have to also keep track of time to accelerate the car, with forces you dont have to worry about that.