Power Botton

Hi everyone. My laptop has a problem with the power button and it happens that when I press other letters like T or P the laptop shuts down. Is there a way I can use to disable the Power key F from settings or Terminal?