Weird Problem Regarding Shutdown While Pressing Brightness Buttons

When I press the Laptop Display Brightness button/keyboard brightness button , the laptop shuts down like someone pulled out the battery . Instant Shutdown. I don’t have this problem with arch fedora opensuse or windows . Point to be noted if I use external keyboard to raise and down brightness then nothing happens