There is a product available designed to be pressed between keyboards to pull all the dirt out, it's like a kind of stretchy putty.
Or, turn your iPad completely off and use isopropyl alcohol and a microfiber cloth, the alcohol should loosen the dirt and fall out without the cloth as you don't want any pushed inside, maybe Hoover it just after having applied the alcohol.