I put 2 drywall anchors into a 2x4 and then screwed a screw into them to secure the keyboard encoder. It gave me a little over a .25" of clearance between the wood and the encoder. It looks janky but has worked so far.
After that I bought 25 pcb feet on ebay for about $8. I haven't changed them out because this is more of a temporary control panel anyway...