int qual
int qual, int framenum
static int Add2keyring	(	int qual	)	{	Keyring *ring = 		Game_window::get_instance()->get_usecode()->getKeyring();					// Valid quality & not already there?	if (qual != c_any_qual && !ring->checkkey(qual))		{		ring->addkey(qual);		return 1;		}	return 0;	}