Stopping a command

Hello All. I don't know if this is passable but I think there should be some sort of stop command in SolidWorks. For example. If I have a large assembly open and I right click in the tree and go to select collapse tree, sometimes I accidentally hit invert selection. Then I have to wait till my machine with a \\\$40 hard drive inverts the selection.If I had a stop command then I could get back to work sooner. Another example is if I have a Drawing open and I accidentally have a large view selected with a lot of holes and rounds and I select the centerline command I have to wait till it fills all with an centerline before I hit the undo command. Again If I could stop this at the time I realized I made that mistake then I could get back to work faster. Thank you for reading and reply.

SolidworksAssemblies