int dbKeyState(int iScancode); will return an integer value that is either 1 or 0 . The integer iScancode is the ACSII scancode of the keys. it will return 1 if the key represented by iScancode is pressed, otherwise it will return 0.
you can also call void dbScancode(void); .. this function will return an integer value that represents the scancode of the key currently being pressed... so if you pressed A it would return 30 ... if you pressed B it would return 48 etc..
there are a number of ways you can code "controls" it would depend on what you are controlling and how you need it controlled... i mean, if its an aircraft you do it a certain way, if its a person, another way...
There are also commands inside GDK for reading other control devices other than the keyboard alone.. mouse, forcefeed joysticks etc...
If it ain't broke.... DONT FIX IT !!!