Control the Keyboard

Hello, is there a applescript command that allows you to hit the “enter” button on the keyboard.

thx,
tk


tell application "System Events" to key code 76 -- the keyboard code for 'Enter'

If you want return it’s more direct:


tell application "System Events" to keystroke return