turns out libkbd isn't really needed there's any easier way
https://www.mobileread.com/forums/sho...8&postcount=28
here's it running in a homebrew gtk app....
http://www.youtube.com/watch?v=LMr1VAmgThY
gt-key lol!
I'll write a mini tutorial once I get some time to code something a little less sucky