Subj : Re: Test for Keyboard Key Pressed To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Thu Apr 22 2004 05:43 pm #include if (kbhit()) /* if a key has been pressed */ { int k = getch(); /* get the key */ if (!k) /* if a 'special' key like Alt or function key */ getch(); /* discard the 2nd value they return */ else if (getch() == '\r') /* Enter generates a carriage return */ ---Enter has been pressed-- .. Ed > Larry wrote in message > news:40882cc4$1@newsgroups.borland.com... > What function do I use to test if the enter key has been > pressed? .