Better handling of enter and Ctrl-C in completion mode.
Use weakref for the backreference from Event to InputProcessor.