private void inputText_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter && sendButton.Enabled) { sendButton_Click(sendButton, null); } }