Call cancel() when Back key is pressed