Turn off your device
Press the Volume keys +, Home and Power simultaneously, keeping you pressed
Release the buttons when the phone screen is turned on or when we see the Samsung logo home (or ROM CyanogenMod or any we've added).
Within seconds we see the recovery mode screen Samsung Galaxy S4 and now we can apply the necessary changes. To move between options use the volume keys + and volume - and to select an option, simply press the power key.
To terminate and restart, you must press the backspace key until you reach the first screen of the Recovery mode (which looks like the picture above) and once located on the option that says "reboot system now" we must press the power key.