Actually fixed #5.

The error was cause by events firing in a different order
depending on the text console API used (TWAPI vs. raw vs. none)
and platform.