You will need to check the keystate() of the key you want to assign to the sound. The 'H' key is 35. You could use something like this:
hpressed=0
do
sc=keystate(35)
if sc=1 and hpressed=0 then hpressed=1 : rem play sound
if sc=0 then hpressed=0
if spacekey()=1 then exit
loop
If you don't know the scancodes of the keyboard (so you can know what number to plug into the keystate(35) above, you could use the following to find it out:
sync on
sync rate 42
do
sc=scancode()
if sc>0 then cls 0 : print "Scancode = ";sc
if spacekey()=1 then exit
sync
loop
Just run the program and press the key(s) you want to identify and it will tell you what the scancode is.
You idiots! You've captured their stunt doubles!