Fixed the bug that causes an infinite loop on KEYCODE_BACK down.