Toggling speed

I am trying to think of a way to toggle speed. What I am looking to do is make it so that I can choose a speed and then from that I have 5 seconds to move the joystick. While I am moving the joystick the case structure cant just go false. When the joystick isn’t moving the case will be false and you have 5 seconds to move the joystick again before it goes false and you have to choose a speed again. I have a picture attached that shows my current vi.
http://i.imgur.com/y0bN7zo.png

Let me see if I have this correct

You want to set a speed.
If 5 seconds elapses, you want it to stop.
If the joystick is touched, you want it to reset the 5 second counter.

Ok, this uses the milli-second timer.
State 1: Speed Pass Through - When button is pressed, go to State 2 and maintain the speed setting (use a feedback node or shift register).
State 2: Have a 5 second counter in this state. If the counter expires, goto State 1. If the joystick exceeds a certain value, reset the counter.

I think that does what you want.

Milisecond timer counter:
Read the value from the millisecond timer and save it in a feedback node. Compare this to the present value of the millisecond timer. If the difference is greater than or equal to 5000, set the output to true. The reset button saves the current value of the timer to the feedback node.

Timer Embedded should do the trick I think
https://github.com/allancass/836-Library/tree/master/Pneumatics/Common