Why does it happen
You probably hit space bar in a different program. Great to know if you are testing auto mode.
Just send the robot code to me, it can have an error, so it isn’t working
It may be something wrong on the programation.
There is no way to cause an “Emergency Stop” on the robot from the user code. As the first post said, the Spacebar was pressed while the robot was enabled. This E-Stops whether the DS has focus or not (presumably for safety reasons).