I remember that there was a function, but i can't remember which one.. (and i might be wrong...) but SendMessage with the WM_KEYDOWN message should do the trick for you
MSDN says "The WM_KEYDOWN message is posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed. "