Movement with keypress

I’m new at flash and I can’t get a character to move left and right when the left and right arrow keys are pressed without having the whole window scroll. I couldn’t find anything in the tutorials, so if anyone can help me, I would appreciate it.