how do i stop left and right movement when a key is pressed down

No my idea was launching the character in the direction of movement on input event. But I also thought this would require setting and resetting of the movement component drag or acceleration values. Was just an idea I figured you’d have better insight than I do