Increase variable while true, decrease while false?

What exactly does not work? Is your input (F) enabled? Speed has a Value greater than 0?