Clean up CW generator
Capture key events, and generate CW from keystrokes.