How to look up/down more than 180 degrees?

I am developing an environment without gravity, so i need the character to look up and roll more than 180°, and turn around many times as player wish, like it does in z axis.

You’ll quickly run into [Gimbal Lock][1] issues; and how to combat it:

[1]: https://en.wikipedia.org/wiki/Gimbal_lock

Thanks!!!