exit insert mode when entering a tab