How to make a character to NOT stop moving in direction until I press the opposite button?

Sorry - that was an example of what I would like to happen. At the moment, when I press the opposite button, it accelerates by itself. It should only accelerate if I keep my finger on the button. :grinning: