I'm making a custom inspector for my script, and I have an option to pick a KeyCode as you can see below
However, now that I'm using a custom inspector, I don't know how to add a Keycode Field.
I assumed it would be like the rest of the custom objects, where you would just use EditorGUILayout.ObjectField()
but since KeyCode doesn't derive from UnityEngine.Object
it doesn't work.
I've tried researching, but all I can find are posts on how to detect keypresses in the custom inspector. Does anyone have a solution?