HOWTOGAMEDEV
ALPHA
Display the keycode / name of any key that is pressed in Unity3D
Insert this piece of code into the OnGUI call of an active Class and any key you press will display in the console stating its keycode.
Event e = Event.current;
if (e.isKey) {
Debug.Log("Detected key code: " + e.keyCode);
}