Naming logic bricks

On some of the blends i have downloaded I notice that the logic bricks have names. How do you name the logic brick?

digiman

In the little box where it has “sensor” or “sensor1,” simply click and type in your desired name.

That’s not what i mean, next to the add button of the sensor there is a longer button with a default name
like Cube, on some blends i have seen that default has been changed. How can that be changed?

digiman

@digiman: i think the bar you are refering to is the object name.
Change it under the Object panel.