Lot of refactoring / code cleaning, some unnoticed bugs fixed

- When chat is opened, doesn't lock the camera
- Camera is now restored correctly after keeping pressed Fx