MZ How to assign a common event to a button other than the default ones

I was wondering if there is a way to assign a common event to play to a button other than the default buttons given. [Directions, OK and Cancel]
I want to add a "treasure radar" that opens when the Q key is pressed, but I don't know how to do it.
Any way do make this?
I did a quick search and found this. 😀

I personally use Hakuen Studio Button Common Events for that sorta thing. ^^

There's also VisuStella Button Common Events but it's paid.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-assign-a-common-event-to-a-button-other-than-the-default-ones.182604/