Open the AUDIO ROOM ("sliders" icon at left) and click NORMALIZE on the selected track's channel. May or may not do what you want, and won't optimize the levels. You can adjust individual clip gain there as well.
There's also the option to PRODUCE the audio timeline as a WAV file, for external editing in PD's WAVE editor or another audio utility.
And keyframes can be set on the audio timeline itself by dragging the horizontal line up or down.