It s the momentum conservation (or motion quantity p=mv), and the same explanation why gun slide recoil.
The mas of gas that the jet engine blow out, multiplied for its velocity, must be the same of the mass of the space ship, multiplied for the spaceship velocity.
mv=MV
You have two kind of jet reactor, esoreactor (typical planes), where you have that there is also an incoming mass of air, and endoreactor (rocket kind), where all the propellent is inside the rocket and there is no incoming mass. The first can't work in space, as there is no air.
You can also measure the speed force as the mass flow of ejected combusted gas and the gas velocity F=m'*v.