Fix bug in --min-keys and --key-freqs.

Fix Keys namespace in filter_keys().