Thank you for your query on Healthcare Magic.
Here two possibilities with your history.
1. Breath holding spell : After a precipitating factor like pain or taking a toy from the child, child starts crying, stops breathing, becomes blue followed by stiffening with rolling of eyeballs. Your description is matching to this.
It is common in children and it is like a developmental issue in some children.
Avoid precipitating events like disappointing the child.
Some times treating underlying iron deficiency anemia
if it is present will decrease the frequency of spells.
2. Cyanotic spells : which are associated with congenital heart problems like Tetralogy of Fallot
Here they are called anoxic spells and they are due to decreased oxygen
supply and usually occur in the early mornings.
If the heart murmur
is due to this heart problems this episode may be related to heart murmur.
If the heart murmur is not due to a clinically significant heart problems it is not related.
Therefore I advise you to consult your Pediatrician
get examined your child.
Hope I have answered your query, if you have any clarification please let me know.