only use keys for the matching castle_type