private static bool IsTriggered(ICollection <InputAction> hotkey) { if (hotkey.Count == 0 || _inputStates == null) { return(false); } return(hotkey .Select(x => _inputStates.GetPressed(x)) .All(x => x)); }