well i tried to use a keyboard hook to capture certain keys and the duration they are pressed.
the menu is only one example. the more important one is to override the bot during moving for example. while i move the bot should do nothing.
the problem i have now is that hooks don't seem to work at all

they work as soon as i don't use them in game, but refuse their work where i need them. if someone could explain me why i would be more than glad. capturing a key at .net is only possible with a hook or controls as far as i know (<-- might be wrong here, but i don't know another way

). since i want to capture them regardless if any window has a focus at all i thought hooks would be the way to go.