How do I stop a ship from moving in space?

I have a spaceship that is not being affected by gravity and after thrust is input, it continues in X direction like a real spaceship would. I want to implement a button where it tells the ship to basically halt motion without using a timeline.

This is basically how forward/reverse thrust is set

This can stop the ship, but it’s instant and I’m trying to avoid doing this as a timeline event.

I tried this, but it didn’t work/I didn’t have the right event trigger(?) How do I get my ship to stop smoothly?