Dont know if you noticed...
There is NO REASON you cant replace that toggleKeys script WITH YOUR VERSION of matchbox keyboard ;P
That's exactly the reason it is an external script
replacement -plug and play keyboards totally possible.
(just like you asked for in osmo)