How Do I Use xKeys with KM?

Boy, the example you referred to was a long time ago. But near as I can remember, assuming xKeys generates standard KM triggers, that example should do exactly what you want.

Have you tried it? What happened?