fix being able to move while inventory is open