Ario Gaviore's Album: Wall Photos

Photo 1 of 1 in Wall Photos

Hello guys. I've a problem.
I want to create the following sequence: By pressing a key (6 for example) I want to start a motor motion in loop. I also want that at any time I want, pressing a key (space for example) to freeze the sequence. What am I doing wrong?
I try to do a simple When "space Button" pressed, "motor X" set power 0, the motor instanlty stop but later continue the loop instruction.
i try several version of "IF DO" command ..