Rewrote handling of morse ticks in key and main.

... or something....