Keyboard keeps disappearing after each keypress on iPad

Fixes #554: Keyboard keeps disappearing after each keypress on iPad