handle back key.