Hi,
If you look in the Gameplay section of the settings menu, there is an option for “Move to melee attack enemies that are out of range”. If that option is enabled, using a Melee skill while hovering your mouse over an enemy will move you towards the enemy before attacking. Currently there is no mechanic that will force you to move before using a ranged skill, as far as I know.
If you have this “Move to melee attack enemies that are out of range” option enabled, you can hold Shift to override it. I have noticed that pressing Shift has no effect if you are also holding down a key bound to using a skill, is this what you’re referring to?
I’ve just tested this, so if you’re experiencing different behavior I would really appreciate hearing what skills and weapons you are using. Thanks!