Like so:

#define K_ENTER 13

Then you'd use a function like getch() and test to see if Enter was pressed. Red_Baron's Dungeons of Moria game has the source code with it. One of the header files, keys.h, defines all the keys I think there are. You may find it useful .

Brendan