> My idea is to return rather scancodes then ascii codes. Not raw > scancodes - it should be inteligent enough to send the same code for > (for example) Z key, no matter what keyboard (German, UK, US) is used. This doesn't sound like a good idea to me. You'll want to stick with pure scancodes and to provide a function for conversion from scancode to ASCII code...