I think you need to use keyPress and keyRelease.

For example:

If you wanted to press ALT+F+S to save a file, you would use


robot.keyPress(KeyEvent.VK_ALT);...