Thanks to all for your advice. I was going to check the state of the keys with an On-Idle script but will try Sarah's suggestion instead. Thanks again BIll