Drücken Sie die Eingabetaste in Roboter Java

 public static void pressEnterKey() {
		        Robot robot1 = null;
		        try {
		            robot1 = new Robot();
		        } catch (AWTException e) {
		            // TODO Auto-generated catch block
		            e.printStackTrace();
		        }
		        robot1.keyPress(KeyEvent.VK_ENTER);
		        robot1.keyRelease(KeyEvent.VK_ENTER);
		    }
buddhi