Set cursor based on mouse input. Closes #136.