I realised I don't need scan codes, I need to get the character that the user entered.
I know about extended ASCII, I am using the extended Windows-1252 set (the most common I am told).
So I need to find out what ASCII character the user endered in. I'm not sure how european keyboards differ from ours, so I might just be able to use UTF-8 (well, the first 127 characters of UTF-32). I users to be able to use the letters with accents and thinks like that, if they need to.