No, it's not possible to define any keys from a script. The only way I can think of is to make a dialog button appear on screen which ends the script when pressed. I'm sure there are tutorials on how to create dialogs in the ed. depot. If not, then there's great program that you can download that allows you to create dialogs. Check for it in the ed. depot.