Take a look at the following APIs in MSDN Library :
keybd_event
GetAsyncKeyState
You probably don't need a bypass to call these APIs, unless of coarse GG hooks them. In which case you can find some lower-level APIs that it doesn't hook or rehook'em.