Hello everyone, I noticed this bug in my own project and reproduced it in a new project. Here it is described in the video below:
This issue might not even be something worth fixing because in a real game, the player will probably go through menus and such before moving, but it might still be an issue for some