How metamask keyringController works

Found this which seems to break down well -