Process back key event in ui thread.