QUICK ANSWER
"Used to" is a phrase which is often translated as "soler", and "when" is an adverb which is often translated as "cuándo". Learn more about the difference between "used to" and "when" below.
used to(
yus
tu
)A phrase is a group of words commonly used together (e.g once upon a time).
1. (general)
a. no direct translation
This refers to an idiomatic word or phrase for which there is no word-for-word translation.
My family used to go to the beach every summer when I was a kid.Mi familia iba a la playa todos los veranos cuando era niño.
Our coworker used to have the cutest pet rabbit named Bunthony Hopkins.Nuestra compañera tenía un conejito monísimo llamado Bunthony Hopkins.
b. soler (only in the imperfect)
My grandfather used to hide chocolate from my grandmother all over the house.Mi abuelo solía esconder chocolates de mi abuela por toda la casa.
when(
wehn
)An adverb is a word that describes a verb, an adjective, or other adverbs (e.g. to run quickly, very tired).
1. (in questions)
A conjunction is a word that connects words, phrases, clauses, or sentences (e.g. The cat and the dog slept.).