You want to close the dev console using top right close button in a FPS game. After closing it, the mouse still remains uncaputured.