Also looking at the inputKeysCopy closer it appears this would always generate a filter that returns no keys. Since it would always be empty since it removes each key it iterated over at line 194.