How do I keyframe a lattice (from Modeling Mode) inside the sequencer?

Basically, I am trying to deform a mesh using a lattice in modeling mode. But the deformation needs to be keyframed inside the sequencer, and I’m not sure how to go about doing that. Is there any way to keyframe this or do I need to go about this another way?