A way to do backflip/frontflip with the controller ?

Hello all I have a little question for you guys:
When you move your mouse to look up and down in unreal, you’ll be stuck when you look right into the sky or if you look straight downward.
I’d like to know if there is a way to suppress this restriction for a controller in a First Person game ?

My goal is to give to the player the ability to do a frontflip or backflip (a 360° rotation on the Pitch axis) when he move the mouse up and down.

Thanks for your answers =)