hmmm, Try this code,
do
cls
print "press F1 to change key control"
if keystate(59) = 1
sleep 200
print "press any key"
wait key
if scancode()<>0
key = scancode()
key$ = inkey$()
key$ = left$(key$,1)
endif
print "you have selected keycode",key, " = ", key$," as your control key"
print "press ",key$," to test it out"
wait key
endif
if keystate(key) = 1 then print "this is your chosen control key"
loop
Its a quick job and i'm sure there's a better way of doing it, but this worked for me. dunno how to fake the key press though...
hope this helps
kezzla
Sometimes I like to use words out of contents