C# Creating Hotkeys

Hi everyone, I’m trying to make a hotkey script that allows me to assign hotkeys. But I’m not sure how. How do you figure out which key was assigned as a hotkey and how do create an if statement that checks whether or not that key was pressed?

First, make sure you extend from editor and not monobehavior.

Second, here is a example on exactally on what you are talking about.
http://wiki.unity3d.com/index.php/Blender_Camera_Controls

If you still need help after looking at this example then send a comment and I will explain it in more detail.