I don't tend to write anything in shells other than bash but you could always start bash to run it:
bash -c "read -sn1"
If you want something that will work in all shells then you'll need an additional program such as pak.c:
printf("Press any key to continue...");
while (getchar() == EOF);
gcc -o pak pak.c