Rotation Question

I’m messing around with a top down RPG, and I am trying to get my characters to rotate depending on what buttons are pushed etc as seen here:

onClipEvent (load){movespeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
play();
_rotation = 90;
_x+= movespeed;
}
if (Key.isDown(Key.LEFT)) {
play();
_rotation = 270;
_x-= movespeed;
}
if (Key.isDown(Key.UP)) {
play();
_rotation = 0;
_y-= movespeed;
}
if (Key.isDown(Key.DOWN)) {
play();
_rotation = 180;
_y+= movespeed;
}
}

When I push up, it’s fine. When I push anything else, it warps away. Any suggestions?

Thanks