Hello! Wasn't Aaron Seigo working on this (http://aseigo.blogspot.com/2009/04/more- on-keyboard-status.html)? Seems like the hard bits are already worked out... I'd contact Aaron Seigo (aseigo at kde.org). I don't know if he is reading this mailing list... Greetings, Peter