trapping keys

how do i trap enter command entered by a user.

actually i am throwing a screen this screen has no input but this screen should be displayes unless and until the user presses the enter key. as the user presses enter key the command prompt should come.

how do i achieve this

A read command such as read answer, will pause your script until the user enters something. Whatever is entered will go into $answer. If just Enter is pressed, $answer will be null.