NBA 2K6 on PS2 does not have manual dunk controls. The PS2 version uses simplified mechanics — dunks occur automatically on fast breaks or via the context-sensitive layup button (Square). No right-stick or dedicated dunk input exists.
For manual dunking, play NBA 2K7 or later on PS3/Xbox 360, which introduced the right-stick shot stick.