it's working, but not really as I expected... now it's only grabs 'ABC' and not 'abc' (upper case only). I need it for some text input. WM_CHAR doesn't return the arrow keys and WM_KEYDOWN doesn't return the lower case chars. And it makes % and & from arrow chars.