Voice recognisation, Need help in changing a code

In this code when I say forward the robot go forward for 3 second, what can I do that when I say forward it goes forward until I say stop?

PLease modify your post and replace [ quote] tags with [ code] tags (without the spaces)

          delay(3000);              // wait for a second

Useless comments really should be accurate.

In this code when I say forward the robot go forward for 3 second, what can I do that when I say forward it goes forward until I say stop?

Take out the delay and the stop!