How to implement inertia to my game

Hey guys, im building a spaceshipshoter and thought about implementing spaceship-inertia.
how could i implement this? is there a predefined option?