Fix <delete> key behavior together with yasnippet mode.
Fix ac mode behavior on <escape> key.