The onyl way to do that from code would be to write a global keyboard hook and eat the Ctrl or Esc key. There's tons of examples out on the web on how to do this, though, I don't recommend doing this.
Try
this[
^] instead. You'll have more control of additional hotkey combinations.