text-edit: Corrected updating of text after editing.
Added key-window test.
Cleaned format-trace, *features* and *mclgui-trace*.
Extracted debugging method.
Exported event constants and event-modifierp.