When a player clearly has the puck on the stick and can choose what to do with it. Offside, delayed penalties and other rules use it, and the exact definition comes from the rulebook.
Find a coach who teaches the skills you care about.