private void SendKey(string key, int delay)
 {
     KeystrokeService.SendSingleKeyPress(key);
     Thread.Sleep(delay);
 }