I faced a problem a couple of days back when, by misstake, a mobile was switched to safe mode. When this happens, the keyboard and almost all of the apps are not available this making the phone unnecessary.
I Googled and managed to find 2 simple steps for switching from safe mode.
1. Press and hold the power button.
2. Do choose to restart the device, NOT turn it off.
This should work, at least on Android devices. If you accidentally switch to safe mode and feel lost, you know possess the knowledge on how to undo it.