changed WM_KEYDOWN to WM_CHAR solves problem