I already tried that!

I tried using WM_KEYDOWN and WM_KEYUP and WM_CHAR nothing worked.