There is your problem... you are trying to send keyboard input. Try joystick input, it's much simplier.
And considering all the shady things that COULD be done with such a technique, I'll leave you to google the answers on your own. I will tell you that glovepie has a really good working example.
|