The answer is no, Gábor Király never played for Real Madrid. He was born in Hungary and played for the Hungarian national team. He also played for a number of clubs in Hungary, Germany, and England. He is known for his long career and his ability to save penalties.
The Remarkable Journey of Gábor Király: An English Quiz on Hungary's Legendary Footballer