Switch with different delays

Sorry for using Dutch in my code, normally I won't do that. Tomorrow is will try the new code. Did I see I have to reconnect the 5v from switch to ground? I have also tried that but then I got some false values due to floating of the d10 pin.