Character stuck when opening the map instead of pressing ESC after viewing a poster

How to reproduce:
In front of a poster, press E to view it
Now instead of pressing ESC to close it, press M to open the map
Close the map
→ The view goes back to play mode but the character cannot move. The user has to close the game and get back .