when I entered the room
Cuando entré a la habitación, Tom y María se reían de algo.
When I entered the room, Tom and Maria were laughing about something.
Cuando entré a la habitación, había sangre por todos lados.
When I entered the room, there was blood everywhere.
Él estaba almorzando cuando entré a la habitación.
He was having lunch when I entered the room.
Cuando entré a la habitación, ella estaba tocando el piano.
When I entered the room, she was playing the piano.