Inertia moving

So I’ve got a basic inertia script, but I can’t move right (it moves me left).
stupid tabs dont work
Here’s the script:

function KeysDown(){[indent]if(KeyIsDown) Blob_speed += 4;

[/indent]}

function Blob_Move(type){[indent]if(type == left){

Blob._x -= Blob_speed;
Blob.gotoAndStop(3);
}

else if(type == right){[indent]Blob._x += Blob_speed;

Blob.gotoAndStop(2);

[/indent]}

else if(type == slowdown){[indent]Blob._x += Blob_speed;

[/indent]}

[/indent]}

onEnterFrame = function(){[indent]if(Key.isDown(Key.LEFT)){[indent]KeyIsDown = true;

KeysDown();
Blob_Move(left);

[/indent]}

if(Key.isDown(Key.RIGHT)){[indent]KeyIsDown = true;

KeysDown();
Blob_Move(right);

[/indent]}

if(Key.isDown(Key.SPACE)){[indent]Blob_Jump();

[/indent]}

else{[indent]KeyIsDown = false;

Blob_speed *= 0.9;
if(Blob_speed <= 0.1) Blob_speed = 0;
Blob_Move(slowdown);

[/indent]}

[/indent]}

Blob is the name of the movie clip, the different frames and the moving, whatever doesn’t matter. so what’s wrong with my code?