this may help you and others.
Or at least, start you off.....


//set up a TEXT object...
//with some text to input/display

#include<acknex.h>
#include<default.c>

STRING* temp1="#50";


//added another TEXT Object
//to ask for user for text input:
//TEXT object sg


TEXT* sg={ pos_x=50; pos_y=10; font="Arial#24"; alpha=90; string("Enter text: "); flags=TRANSLUCENT | VISIBLE; }

TEXT* sg1={ pos_x=100; pos_y=35; font="Arial#24"; alpha=90; string(temp1); flags=TRANSLUCENT | VISIBLE; }




function main()
{
video_mode=7;
screen_color.blue=255;


wait(2);



//place inputted text into string of temp1

inkey(temp1);




while(1)
{


if(key_c)
{
sg1.red=0;
sg1.green=0;
sg1.blue=0; }

if(key_d)
{
sg1.red=255;
sg1.green=255;
sg1.blue=255; }



wait(1);


}






}