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 Bold 9220 (RIM Magnum)