Movement issues

Howdy dudes.

I am trying to make a game here, but I’m come across something that’s just not working right. Shock horror it’s movement. Basically, the char walks just fine UNTIL he get’s into another frame. For example, if he’s walking in the “main” area he walks fine (25px step), but then when he enters a house will walk at 50px and then when you go back into the main screen, 75px, house -> 100 map -> 125 house -> 150 etc. etc.

Anyway, it’s annoying and I can’t seem to fix it. Here’s the code that I’m using to make him walk:

var myListener:Object = new Object();
	myListener.onKeyDown = function () {
	keypress=String.fromCharCode(Key.getAscii());
		switch (keypress) {
			case 'a':
				_root.char_mc._x -=25;
				break;
			case 'd':
				_root.char_mc._x +=25;
				break;
			case 'w':
				_root.char_mc._y -=25;
				break;
			case 's':
				_root.char_mc._y +=25;
				break;
			
			default:
			//do nothing
		}
	 }

		Key.addListener(myListener);

Thanks for any help guys.