In Elite: Dangerous Options, disable "Menu Transitions" if they are on. They will make menus appear faster, and macros will not have to incorporate large pauses after those keys.
Like Gary said, you need pauses between those keys, but really, you should have pauses between EVERY keypress action when working with the Elite Dangerous menus - they can be testy. I have been able to lower the timings to 40 milliseconds, but it could be system dependent. A safe timing would be 0.05 - 0.06 when you go to speed up the macro.
Would look something like this:
Press 1 key and hold for 0.06 seconds and release
Pause 0.06 second
Press E key and hold for 0.06 seconds and release
Pause 0.06 second
Press E key and hold for 0.06 seconds and release
Pause 0.06 second
Press Space key and hold for 0.06 seconds and release
Pause 0.06 second
Press S key and hold for 0.06 seconds and release
Pause 0.06 second
Press Space key and hold for 0.06 seconds and release
Pause 0.06 second
Press Escape key and hold for 0.06 seconds and release
When you want to get more in-depth, you can begin using a variable for those pauses (page 32 of the manual), so you can change one number to affect all pauses, and get the speed of this macro just as you like it, as it works best on your computer in-game. Cheers!