How can I make 3D spaceship movement

I’m trying to make 3D spaceship controls similar to StarFox (just without it being on-rails)