Java robot library doesn't work with fullscreen games

thanks, I’ll try it later, I have another thing to ask from you,
is there a default delay value for pressing a keyboard key ? … because some times my arduino board send serial data to processing IDE correctly, but processing doesn’t do his job well. when I send a single data ‘W’ form arduino to processing, processing type 2 or more results at a time.

explain me plz…