'reset viewport' shortcut

 From:  blackhoney
3894.1 
Hello,
I've found the script to reset all viewports at once.
Is there a way to set my 'f' key as a shortcut to reset the active viewport?

Thanks