assign key F5 with a function to revert buffer content