These are the necessary steps:
Do not push the brake at the same time as the accelerator. Doing so can cause what computer scientists might term a “race condition” except you won’t be racing so much as burning out the engine. This can cause a fire, lead to a traffic accident, or worse.