Thanks for the suggestion, but it's definitely a bug. I have exactly the same problem on mine. Usually the sensor works perfectly, but occasionally the keypad lights just stay off.
Used to happen on my N85 as well and flicking the lock switch would bring the lights back into action, but that...