I'm not sure how custom movement works, but try
W is down -> Set speed to 50
Else -> Set speed to max(boat.custommovement.speed - (60 * dt), 0)
(to make an Else event, select the "W is down" event and press X). Change the 60 to a lower value so it slows down slower