A keyboard event system that actually works