How to toggle menu button and interact with sub menu with keys

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By oublieduchaos

First: thanks for taking your time to answer my question.

So, i want to create an interfcae with A,S,D,X key, but i’m unsure to wher to start, i want than when you hit the a key, you get a popup menu and new actions, like state, when every button is in state 0 it will activate the first layer and when one of them are in activated state 1, you will interact with the other layer
A(0) S(0) D(0) X(0)
A(1) S(0) D(0) X(0)
a(an action)
s(another one)
x(last action)

I thank you again for the time you take for me, novice XD
And wish you the best X)