Implement long press for the BACK key to close the repository immediately