First, you should have your gun not fully loaded, because if you have your gun fulll loaded you won't be able to reload and that is a important part of this glitch. I will make an example with the work boss.
In this case I'm using the shotgun, that is not fully loaded.
Now, when a dialogue shows up, press R to reload. During the reloading you can skip the dialogues.
Then, **press I to access the inventory,**and then press I again to close the inventory.
Press space to unequip shotgun and now you should be able to move freely during dialogues, but remember if you press J to skip the dialogue, you won't be able to move anymore.
Also, during the speedrun, it depends when to use this glitch, for example, during this boss dialogue there is a small gap within of time within 2 dialogues, so you should perform the glitch exactly when the gap start.
Like this:
And that's it, it's pretty easy. I hope this is useful for runners.
Good luck!