Former AC Milan midfielder Kaka says the 2005 UEFA Champions League final defeat against Liverpool was a nightmare, but taught him his most important lesson.