hitTest Question

Ok I’m a beginner programmer in Flash AS2, and I have been trying to get hitTests, I have read tutorials, made my own codes, used tutorial codes. Nothing has worked. I have a game, with arrow key movement and I am trying to make it so when you hit the wall it stops the character. Help Please!