How can I cancel the production of units with a hotkey?

https://www.youtube.com/watch?v=TVeE1zlT5ro&feature=youtu.be

Does pressing the ESC button with a building or unit selected clear the selection of the object?