if you want to hookkey(), you can try it something like this, probably:
#define MENU_BUTTON b3
struct menu_t
{
int open;
};
menu_t menu;
void HookMenuButton()
{
UpdateControls();
if(!menu.open && MENU_BUTTON)
{
menu.open=1;
MenuLoop();
menu.open=0;
}
}
//Some where else...
Hookretrace("HookMenuButton");
// ...