Is it possible to send an esc command from source?

If I am running code from the source pane and accidentally leave an open parenthesis is it possible to send an esc command to the console without switching focus to it? It's only really annoying when zoomed on source, and even then isn't too much trouble... but I make a lot of mistakes :wink: #firstWorldIDEproblems

I have tried googling this and looking through the shortcut menus a few times but never found what I was looking for, sorry if I missed it somewhere!