Bluetooth motor control./Serial communication

I am working on a project involving controlling motor via Bluetooth, I have achieved control but what I’m seeing is that when I send the value that translates to forward it keeps moving after I release the button, I’m new to serial communication I suppose my real question is how do I have a constantly updated stream as opposed to the Arduino saving the state until it is changed? Thanks in advance.

Bluetooth_Motor_control_Robot.ino (3.25 KB)

It looks to me as if your code will constantly update itself everytime something is received.

What is it actually doing that you don't want to happen?

I wonder is the problem that it receives a different character when you release the button? If so have your code ignore that character.

...R