private void tbMessege_KeyDown(object sender, KeyEventArgs e) { if (InputLanguageManager.Current.CurrentInputLanguage.Name.ToLower().Equals("en-us") && currentMsg.IsCorrect(e.Key.ToString()[0])) { return; } else { e.Handled = true; } }