AutoLock automatically locks the BlackBerry keyboard after the backlight turns off, optionally waiting a configurable delay after the backlight shuts before locking the keys.
To enable/disable or set the delay, go to Options->AutoLock
Random Application for BlackBerry 8100 (Pearl) 4.1