mentalmente

adverb

mentally

"Se preparó mentalmente para el examen difícil."

He prepared himself mentally for the hard exam.