you can get the characters movement type and based on that you can then either change the movement input allowed or scale min/max speeds or you could use the built in controls for handling this on the character movement component.
I’m looking at you, “Air Control”
hope that helps