Nokia N95 8GB - Is there an automatic keylock in my Nokia device?

Yes.

To change the keypad autolock period time go to Menu > Tools > Settings > General > Security > Phone and SIM card > Keypad autolock period.