Key command loc

Can I make the P key into a key command that selects the whole song to the last event and puts the locators at the start and end of the song…?In one key hit…
even if I have to overwrite the default action…

Yes, you’d start by making a Macro that does what you want. Then you can assign a Keystroke to that.