Depends on the operating system.
In DOS you can
hook interrupt 1ch or use
int 15h function 86h.
In Windows you can use the
Sleep() function.
With Linux you have the
wait command.
edit:
If you only need to wait for the user to press a key in DOS,
use the keyboard interrupt:
xor ah, ah ; function 00h - get character
int 16h