GetAsyncKeyState() returns the current state of the key (being hold or pressed). You don't send keys with that.
You could use

. But you have to run your application as administrator to send a keystroke to a directx window (at least if it's fullscreen afaik)