How to Fire a Event when a button is clicked ?

Here’s a breakdown how you would do it with keyboard input rather than on button click.