You have to tap the screen once in a while just to let the app know you're still awake. If you forget to tap it in time, the alarm will wake you up and you'll be sorry you fell asleep in the first place!
Here's the link to the app: http://itunes.apple.com/us/app/sleepless/id555367754?mt=8