Thank you! I'm not sure why the cursor does that either, but I found if you click outside the browser window then back inside the game it re-locks the cursor.