In vi/vim pressing
<ESC> you quit from insert mode to normal mode.
<ESC> I am using
<CTRL>[ because it is require less hand movement.
Another way to exit from insert mode is using
The difference between this two command is described in this question at Stackoverflow.