If you try to assign an existing keyboard shortcut to a new function, Photoshop will display a warning message asking if you want to replace the existing shortcut or leave it unchanged. You can then choose to replace the existing shortcut or assign a different shortcut to the new function.