How to Simulate / Capture "Enter Key is Pressed" by Script ?

How to Simulate / Capture "Enter Key is Pressed" by Script ?
or send a message to DS that "Enter Key (Return) is Pressed"... ?
Thanks for any instruction in adv.!
Post edited by crosswind on
Comments
You could monitor in a loop using using App.isKeyDown( key ) or App.isKeySequenceDown( sequence ).
Thanks Richard. I'll try this option ~~