Try this small proggy to check the scancodes of the keys:

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////

var	gv_key;

PANEL* 	pan_info = {	
	digits 10, 20, "Keycode last pressed: %3.0f", *, 1, gv_key;
	flags = VISIBLE;	
}

void main(){	
	
	// loop till infinity (or ESC was pressed)
	while(1){
		gv_key=key_lastpressed;
		
		switch(key_lastpressed){
			case 71: 	beep(); 
					break;
			case 72: 	beep(); 
					break;			
			// ...
		}
		
		wait(1);
	}
	
}