static void simulateKeyPress(int keyCode) { awtRobot().keyPress(keyCode); awtRobot().keyRelease(keyCode); }