Extremely loud and incredibly close (2011)

A nine-year-old amateur inventor, Francophile, and pacifist searches New York City for the lock that matches a mysterious key left behind by his father, who died in the World Trade Center on September 11, 2001.

https://www.imdb.com/title/tt0477302/