When the ball carrier is under the basket while another player is nearby, hold X + Square.
When shooting the ball, press Away + Square.
While dunking, press Left.
Tap Square.