In a climb pushing ALT pb will level off at the altitude it predicts it can level off at and then maintain that altitude. The prediction and the aircraft don't always work out the same though so you can see some overshoot and return with the ALT button.
Also there is some different behaviour in certain cases when the autopilot is engaged after the alt button is pushed. DSC-22_30-70-70.