Fixes an error on the iOS Keyboard

This error happens when the orientation is on landscape. The
uitextfield just goes off screen and you can’t see what you type.
It happens to be just a wrong logic inside KeyboardInputViewController.
Merge pull request #2169 from azchohfi/iOSFixBeginShowKeyboardOrientation

Fixes an error on the iOS Keyboard