Fixing back button issue by utilizing onBackPressed instead of onKeyUp