One foot in front of the other.
Block the negative thoughts as much as you can.
Write out mantras to read... I can get through this. This won't last, it never does. I won't feel this low forever, it will lift.
Distract yourself --your thinking-- away from how bad you feel, how dark and negative life is... all that... distract yourself and find good words to tell yourself.