A featurette for the upcoming film gives a preview of the singer's new track, "Back to Life".
The movie tells the story of Phiona Mutesi (Madina Nalwanga), a 10-year-old in the impoverished Ugandan slum of Katwe, who goes from selling corn in the streets to becoming an international chess champion with the help of her coach (Oyelowo), reported Entertainment Weekly.
"I was just totally taken by Queen of Katwe. Phiona's story is so powerful, it just moved me to write the song called 'Back to Life'. This song is about how there's no stopping when you're determined and you believe in yourself," Keys said.
In a previous preview for the film, Nyong'o, who plays the young girl's mother, discussed the emotional impact she immediately felt from the project.
"When I first read Queen of Katwe, I was about 10 pages in when I broke down and cried because I had been so inspired," she shared.
The movie is set for its world premiere at the Toronto International Film Festival on September 10.