Another option is to use the menu for your application. Then Refresh simply becomes a menu item in the menu, and you can assign F5 as an accelerator to a menu item. Behind the scenes, he will do key bindings for you.
This is a good approach because you now have your own graphical interface. The user can invoke the update by searching the menu for various parameters. Advanced users will eventually recognize the accelerator key and do not even use a mouse. Like the entire graphical interface, you should be able to call a function using the keyboard or mouse.
source share