Here are a few known spots: the janitor's closet, the supply closet, and a drawer in the teacher's lounge. Those cover part of it.
Also, once you get Richie out of his locker, head to the monkey room—behind the dolls there's a keyboard key. Use it on the button machine, then take the button to give to Richie.