public void KeyDown(Keys key, bool isControl, bool isShift, bool isAlt) { if (!ChatOpen) { Focused?.KeyDown(key, isControl, isShift, isAlt); if (key == Keys.Enter && isShift) { Chat.OpenChat(); } } else { Chat.KeyDown(key, isControl, isShift, isAlt); if (key == Keys.Escape || key == Keys.Enter && isShift) { Chat.CloseChat(); } } }