What Will Smith did was an act.
his 1st response to the joke was a laugh, but I guess Jada gave him one of those looks and he flipped the switch.
Reflect on how you are in social situations. Most people mirror what is going on around them.
He laughed for a moment until he processed the meaning of the joke.