A lot of games use the "tilde" key to open and close a command console in-game, e.g. Battlefield, Counter Strike, etc. So I figured I'd make similar functionality as well. Only problem is... I don't know what the keycode is for it. Scripting reference returns no results, searching the Key Code reference page returns nothing, not really sure if there are other names for it. This one has completely eluded me. How do I access the tilde key with GetKeyDown?
I did a little searching and found this: http://forum.unity3d.com/threads/44495-Keycode-of There are a couple of options in that thread that should help you get what you want.
Code (csharp): if(Input.GetKeyDown(KeyCode.Shift) Input.GetKeyDown(KeyCode.BackQuote)){ //Code Here... }