Key Press Help

How can I use different keys besides the IN_Keys. I’m trying to make it so when you press a button it toggles the mouse on/off so you can press the interfaces around the screen. For example i’m making a Third Person Mode Toggle button, so that players have an option between FPS, and TPS.

Using This Hook
[LUA]hook.Add( “KeyPress”, “KeyPressedHook”, KeyPressed )[/LUA]