I don't know if this is still under active development,
but in case it is, you might like to know that the
keyboard handling in 1.3 is only half implemented. The
callback for key up and special key up aren't called.
In fact, in the event loop, there's not even a case for
KeyRelease. So I copied the entirety of KeyPress, made
it into KeyRelease, changing Keyboard to KeyboardUp and
Special to SpecialUp as required. Also had to change
the code that tells X what events you want to include
KeyReleaseMask next to KeyPressMask. Seems to work ok
for my limited tests.