This commit is inspired by this blog post: https://developer.squareup.com/blog/showing-the-android-keyboard-reliably/