【Apple Script】キーボードを押す

・エンターキー


on sendKeyEnter()
    tell application "System Events"
        keystroke return
    end tell
end sendKeyEnter

・タブ移動


on sendTab()
    tell application "System Events"
        keystroke tab
    end tell
end sendTab

・コピーアンドペースト


on sendCopy()
    tell application "System Events"
        keystroke "c" using {command down}
    end tell
end sendCopy

on sendPaste()
    tell application "System Events"
        keystroke "v" using {command down}
    end tell
end sendPaste