"The moment when you do it, you make me smile."
“When you do it” modifies “moment.” Approx.paraphrase: When you do it, you (perhaps immediately) make me smile.
"The moment that you do it, you make me smile." = You make me smile as soon as you do it.
“The moment that you do it” temporally determines the moment I smile.