private void BattleForm_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Space) { press[KEY_JUMP] = false; triggered[KEY_JUMP] = false; } else if (e.KeyCode == Keys.Left) { lobby.Send("stopleft`" + name + "`" + world.p1.Left() + "`" + world.p1.Health); press[KEY_LEFT] = false; triggered[KEY_LEFT] = false; } else if (e.KeyCode == Keys.Right) { lobby.Send("stopright`" + name + "`" + world.p1.Left() + "`" + world.p1.Health); press[KEY_RIGHT] = false; triggered[KEY_RIGHT] = false; } else if (e.KeyCode == Keys.A) { press[KEY_ATK] = false; triggered[KEY_ATK] = false; } else if (e.KeyCode == Keys.D) { press[KEY_DEF] = false; triggered[KEY_DEF] = false; } }