public static bool IsKeyPressed(Keys key) { return(PressedKeys.TryGetValue(key, out var pressed) && pressed); }