How to restrict the camera

In normal fps’s the camera is unable to rotate past the “down” view, but that happens with the default settings for the camera in jme. how do i stop it from continuing to rotate past the bottom and the top?

http://i.imgur.com/3UpDG.png

thanks -_-