[RFC] Define special key for asynchronous events

This removes the need of calling `shell_resized` when asynchronous events happen in insert/normal mode(it's still required in command-line mode)

@philix, can you try to reproduce the OSX redraw issue in this branch?