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()
With Linux you have the wait
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