AppleScript press and hold key
<p>Trying to run an apple script on a full screen application made in unity.  I'm trying to press and hold a key.  It doesn't seem to press and hold.  For some reason it only enters the character once rather than many times.  If I'm in the full screen application and I physically press and hold "a" on the keyboard i"ll end up seeing "aaaaaaaaaaaaaaaa".  But when I run this script I only see one single "a".  Am I supposed to just send multiple single presses?  If so, what's the point of key down and key up?</p>

<pre><code>tell application "MyThingy"
    activate
    tell application "System Events"
        key down "124"
        delay (random number from 0.5 to 3)
        key up "124"

        key down "124"
        delay (random number from 3 to 4)
        key up "124"
    end tell
end tell
</code></pre>

<p>Do note I'm ultimately running this script from python, but I'm testing it in Applescript editor and getting the same results.  </p>