I want to be able to set in-game key binds in a custom inspector. I am currently doing a non-custom inspector with a public keycode variable showing a dropdown menu of all possible keys. I'd like to make this cleaner. To do this, I'd like to be able to have some kind of field that has the following behavior: a user clicks it to select it the user presses a key the code records the keycode of the key pressed, and then the control is deselected I can't seem to figure out how to do this. I know there are text fields that can be used to enter text, but it seems to me that is not the functionality I want. Can anybody help with this? Thanks!