How can I set a keyboard shortcut, such as- Alt + F1, that performs the same function as a particular button?
For example, I want to close a window and I have coded the button for it already. How can I make a keyboard shortcut so that pressing Alt + F1 closes the window.



