Help With Movement Mode Transitions?

I’m working on the prototype for a third-person action-adventure game, and I’m having trouble setting up the correct inputs and functions for the control scheme I want to use. I’m trying to set it up so you can switch between stances directly and seamlessly according to the following table:

[TABLE=“width: 500, align: left”]

Stance
Key Bind
Result

Standing

Space Bar
Jump

Left Control
Crouch

Z
Prone

Crouching

Space Bar
Stand

Left Control
Stand

Z
Prone

Prone

Space Bar
Stand

Left Control
Crouch

Z
Stand

My current control setup allows me to toggle between standing and each individual stance, but not transition the way I’m describing here. I’ve got variables for each of the different stances, but I haven’t figured out how to manipulate them so I get the results I want. Any suggestions or examples would be greatly appreciated!