Use the same key for different tools

Hi, in fill mode I configured a key to activate and deactivate continuous fill, but I’d like the same key to also be used in selection and pen tool mode to activate and deactivate pixel perfect. I think it would be more convenient. Thanks for your help.