BeginShowKeyboardInput fixed for iOS

Keyboard input wasn't really working, so I rewrote it. This PR fixes #1689. The new code is much cleaner.

I have also included the hiding of the status bar on iOS 7.