Reimplement Ben's key fix, so that refresh does not exit from file detail screen