Fix keyboard appearance on Android. Closes #1070