Slow counter updates and unterminated string
Revert to explicit ButtonMask and KeySym for keymap