private void txtCommand_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { MinecraftServer.Command(txtCommand.Text); txtCommand.Text = String.Empty; } }