Java.awt.event for Enter Key

I would like to use the enter key after I have keyed in a value in the numeric text field to run a script when I press the enter key. Is there a simple way to do this other than writing a script module to define a Robot and KeyEvent from java.awt?

You can put the following on a keyPressed event:

if event.keyCode == event.VK_ENTER: #do something

For more information about keyboard events: … _types.htm (under “key events” header)

Great, thank you