Seems like a pretty neat thing. I haven't looked yet at how you did this, but I have found something of an issue: the ' key (the one to the right of ;) expects English keyboard layout and doesn't respond to international keyboard, which is what I usually use.
I suspect you'll keep running into issues like that, whatever is causing this one, but it might be a good idea to keep it in mind for what you'll next use this for. :3
Hope you can put the input thing to good use.