In a sense, Java has a Robot class that lets you send key-strokes/mouse movements. As for key-logging, you would need to use JNI in order to capture key-presses simultaneous with the game. Trainers...