Take your gun out and press the ADS button. Then put your gun out of your hands and you shouldn't be able to jog anymore. To fix this you need to put your gun back into your hands and press the ADS button again and then put your gun away.
The other way: click the RMB without holding anything and you should only be able to walk and run. Right click again to jog.