Move the mouse for X-Y motion. Click the mouse for Z motion.