public static void KeyUp(Keys key) { if (Input.IsKeyDown(key) == true) { Input.KeyUp(key); } }
public static void KeyPress(Keys key) { Input.KeyDown(key); Thread.Sleep(1); Input.KeyUp(key); }