Getting keys

I'm trying to make a function in my game that will do an Input.trigger? on any key, then return the key that was pressed (provided the key is recognised by RPG Maker). How would I go about doing this? To clarify, I mean the Input.trigger? is checking every :SYMBOL and returns the one that triggered it.

Original thread: https://forums.rpgmakerweb.com/threads/getting-keys.69633/