CtrlC is the standard "interrupt" key on – all Unix-like systems, including OS X.
However, there is no standard "undo this". Once you ran a command to do something, and it did something, it is done. How to undo it – or whether it's at all possible to undo it – depends very much on what exact command you ran.