Just port the motion outside the if statements, and throw in the decelaration code

```
speed = 10;
MC.onEnterFrame = function() {
with (this) {
if (Key.isDown(Key.UP)) {
rotrad = MC._rotation/57;
ymove = speed*Math.sin(rotrad);
xmove = speed*Math.cos(rotrad);
}
if (Key.isDown(Key.DOWN)) {
rotrad = MC._rotation/57;
ymove = -(speed/5)*Math.sin(rotrad);
xmove = -(speed/5)*Math.cos(rotrad);
}
_x += xmove;
_y += ymove;
xmove *= .96;
ymove *= .96;
if (Key.isDown(Key.RIGHT)) {
i = MC._rotation+10;
setProperty(_root.MC, _rotation, i);
rot = MC._rotation;
}
if (Key.isDown(Key.LEFT)) {
z = MC._rotation-10;
setProperty(_root.MC, _rotation, z);
rot = MC._rotation;
}
}
}
```

By the way, if you’re using with (MC), which means in fact with (this), you don’t have to write MC (or this) in your code later…

pom