I found a bug.
The game seems to freeze sometimes when you move the character while hovering over the inventory screen with the mouse. The bug can be replicated by rapidly moving the mouse around inventory items, while rapidly spamming the movement keys.