You can buy it from Sigma-Aldrich:http://www.sigmaaldrich.com/catalog/product/sigald/06103?lang=en®ion=US
or you can powder it inside glovebox; another choice would be put it in acetone or DCM and crash KOH pellets inside these solvents and then filtration to obtain fine powder.
Or...use a plastic bag to cover everything inside, flash the bag with argon or nitrogen, seal the bag, and you can still ground the KOH pellets. Many methods you can try...