How do you make an Hotkey activate a specific method/class.

Well you see i play the Emulated version of rust, and i'm trying to build make an hack that will Instantkill Over Mouse Pos when you press an specefic key. So if i hold my mouse over the person and press § it will send my class/method