Ever accidentally vaulted out a window above the first floor or walked off a roof?
I was thinking to prevent that from happening when a character vaults out a window above the first floor they could hang off of it rather than just go all the way through and let go. Similar principle with walking off a roof, your character could just hang off instead.
What the player could do next is either press any of the directional keys (wasd by default) to pull themselves back up/in or they can hold "E" to follow through with the dangerous jump/fall.
They could also use a drop down menu to either pull themselves back in or drop themselves.