Quote Originally Posted by Mitch View Post
This is how it is done in the plane & tank mod.

PHP Code:
self execClientCmd("bind m openscriptmenu -1 m");
self waittill("key_m"); 
PHP Code:
monitorExKeys()
{
    
self endon"intermission" );
    
self endon("disconnect");

    if( 
isDefinedself.monitorExtraKeys ) )
        return;
    
self.monitorExtraKeys true;
    
wait (1);
    if( !
isDefinedself )  )
        return;
    
    while( 
isDefinedself )  )
    {
        
self waittill("menuresponse"menuresponse);

        if(  
menu == "-1" && isAliveself ) && response.size == )
        {
            
self notify"key_" response );
        }
    }

(run on each player)

But you can also use the supported keys by libcod e.g. space, left/right/up (forward)/down (back) arrows, lean left/right (Q/E) and aim button (left mouse).
This monitors every key you press right?