Use this sentence:
It was only when I (they/he/she) stopped to tie my (their/her/his) shoes that I (they/him/her) realized the truth.
Where Writing and Success Come Together
Use this sentence:
It was only when I (they/he/she) stopped to tie my (their/her/his) shoes that I (they/him/her) realized the truth.