Microsoft MakeCode

EV3 Running Program on Download?

Is there any way to prevent the code from running on the EV3 as soon as it downloads? I sometimes see this happening and sometimes not.

This could be dangerous for the equipment as it could cause it to roll right off the table.

I have started coding a “pause until enter” structure on every program, but wondering if I’m missing something because sometimes the program runs on download and sometimes it does not.

Thanks for your help!