There is a back button loop after making a selection in keyboard layout.
Steps to duplicate
-Open Minecraft game.
-Go to to options.
-Click Controller icon on the left.
-By keyboard layout click "customize".
-Select the first option "qwerty".
-Click back button.
-Click back again, you will not be able to get back to home screen unless you close your game again.
Why did you delete the last step? Confirmed on 0.12.1b1