Game "Need for Speed Most Wanted" can't controlled by Java class Robot
<p>I wrote a bot for controlling racing game using Java Robot. The bot works well for <em>Need For Speed Underground</em> except for key "Down" (Up, Left, Right keys work very well). However my bot can't control <em>Need For Speed Most Wanted</em>. </p>

<p>The bot works fine, but the Game doesn't accept the simulated key events. I did some searching, and found the game is DirectX based. In DirectX the keyboard/mouse events are special. It seems that the game "asks" the keyboard directly, not through Windows. And I try my program in CS, and found it works pretty well.</p>

<p>I program in Windows 7, using Eclipse and Java 1.6. So I want to ask why doesn't <em>Need for Speed Most Wanted</em> accept the simulated key events and how to solve this program? Thank you.</p>
