Keyboard volume buttons not working

I’m running Fedora 35 on a Lenovo Lenovo Yoga S940-14IIL laptop. Everything including the keyboard and function keys for brightness work but volume up and volume down doesn’t work correctly. When I press the volume up button once it behaves like I was holding the volume button down and the volume goes to max instead of increasing it one step. The same thing happens when I press volume down once, the volume goes all they way to 0 instead of decreasing it one step. The volume buttons work fine on an external Logitech Bluetooth keyboard. Is there anything I can do to fix the issue on the laptop keyboard?