change keydown listener to plugin hook. bind on prepare, unbind on finishEditing (TODO before merge: 2 tests still don't pass)