I have a laptop that's hardware volume buttons have been damaged by water causing them to randomly change the volume on a continuous basis. It's an HP dv7-1448dx and is running Gnome-shell. Is there anyway I can disable the hardware buttons?

P.S. It's really annoying because the volume indicator never leaves the screen.