Inputs don't work for me

There is no problem with the spotlight setup as if I set the intensity to 5000.0f in the constructor, it is working. But I cannot manage to make it turn on/off. Let me try with toggle visibility