Any key that's not input mapped?

Does anyone have an efficient solution for this?

I’d like to detect the player hitting a keyboard key, but ONLY if it doesn’t have an input mapping.

Right now, I’m building a list of all keys that have an input mapping, and then checking the Any Key event against that list, but it seems a bit wasteful…