It should take one line for keyboard input. Most of the times I've ever needed to do something with keyboard input I end up repeating the same code over and over. I am a C++ user, and I would like an example. This document is almost as meaningless to a person uneducated about Scan codes as the GetAsyncKeyState page. I'm sure someone at Microsoft would gladly show the world how this is properly done. Abstraction can mean a lot with old languages.