public void Press(string input) { string[] tokens = ParseInput(input); for (int i = 0; i < tokens.Length; ++i) { CppDll.EBKeyDown(mHwnd, mKeys[tokens[i]]); Thread.Sleep(InnerCD); } Thread.Sleep(CD); for (int i = tokens.Length - 1; i >= 0; --i) { CppDll.EBKeyUp(mHwnd, mKeys[tokens[i]]); Thread.Sleep(InnerCD); } Thread.Sleep(CD); }