Fixed issues with the back key on Android

Now the application is never closed when a input text loses the focus