Bug - Stuck moving when opening menu in decoration mode

While in decoration mode, it’s sometimes possible to open the decorations menu while moving (inconsistently, but I’m able to reliable reproduce it by spamming the open menu button). If done, the movement keys swap over to controlling the menu cursor and the character sprite continues moving indefinitely in the same direction until the menu is closed. By doing this, it is possible to move outside the bounds of the world.