The sentence doesn't make sense, whether speaking or writing! Completely unacceptable.
If it had had an aswer key...
Had it had an answer key...
I would just like to know if it would have had an aswer key.
First off, I really don't like using two similar contractions in the same sentence, it sounds weird. But is the sentence wrong because it mixes would and could? It would sound Way bettter if "would've" was removed from the first part.