One you don’t forget but have to be quick to recall the rule, a player is not offside if they receive a ball from a goal kick, throw in or a corner kick.
I think we all may have seen on you tube where a keeper takes a goal kick only for it to strike an opposing player and go straight in the net or the said player takes control of the ball and scores.