void onKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F5 && !modMenuPool.IsAnyMenuOpen()) { mainMenu.Visible = !mainMenu.Visible; } else if (e.KeyCode == Keys.F5) { modMenuPool.CloseAllMenus(); } else if (e.KeyCode == Keys.J) { if (Game.Player.Character.IsInVehicle()) { Vehicle vehicle = Game.Player.Character.CurrentVehicle; if (vehicle.HasSiren && sirens.ContainsKey(vehicle)) { bool silent; sirens.TryGetValue(vehicle, out silent); vehicle.IsSirenSilent = !silent; sirens.Remove(vehicle); sirens.Add(vehicle, !silent); } else if (vehicle.HasSiren) { bool silent = true; vehicle.IsSirenSilent = silent; sirens.Add(vehicle, silent); } } } else { Outfits.OnKeyDown(e.KeyCode); } }