Pausing an application

Blitz3D Forums/Blitz3D Beginners Area/Pausing an application

How can you pause an application?

I want to be able to press the spacebar and the application will pause, when i press another key it will resume.

I looked for a pause or halt command but with no luck

thanks