properly handle enter in insert mode, group meta char logic