Add UI message, some more string utilities, actually make the
event-based input compile, and assorted minor fixes.
Implement button repeat (for UI) and remove debugging output.