Jakob,
Unfortunately this code is doing what I had trouble with before. You can hold and set and release and it will turn on at set speed, thats good. If you need to adjust speed, so hold and release it will then shut down. I am starting to think using one button for this function isn't going to work.
Anyone else have any ideas to make this functionality work?