Pointer Lock and First Person Shooter Controls
HTML5Rocks has an article on using the newly minted Pointer Lock (which prevents the cursor from hitting the edge of the game area in, say, an FPS). It also goes into the details of using the captured mouse movements to create FPS-style controls.