Object Boundaries

Hi - i have a object (movie clip) which is moved using the keyboard but i need to stop it going off the edge of the game play area.

Please help!

Thanks - Chaztheman