I don't thing that it's the same as SendKeys, just from looking. Try it .
Since DirectInput is meant to be as fast as possible, and uses the device drivers, it might need to be done at a driver level. You could also try memory hacking DirectX. Both these options make it a lot more complicated though.