Getting KeyCode Just Pressed

Is it possible to get the KeyCode that was just pressed? So it works like Input.GetKeyDown, but instead of telling it what key you want it to look for, it gives you the key that was just pressed?
I was able to do this in OnGUI by using Event.current.keyCode, but how can I do something like this in Update?

You can’t really use the Event.current in anything other than OnGUI. It’ll work sometimes, but not always.

What’s wrong with using OnGUI? I use this solution sometimes, and don’t have a single thing in my OnGUI besides the event code

Yeah, I suppose there’s nothing wrong with OnGUI. In the case where you’re using this sort of input for gameplay rather than GUI, it would feel a little weird to me to be doing input in OnGUI. Not a big deal, just wondering if such a thing existed.

What are you doing after you get the key that was pressed? If you’re processing input based on what key was pressed, why is GetKeyDown not sufficient?