Movie clip restriction?

how can i keep a MC within a box so it wont go past it by using the arrow keys to control it?
like a boundry.:puzzled:

thanks for any help
-al