I don't think Physkeyb would be useful for this purpose.
It intercepts Java event handler chain and is tailored to fit the needs of K3 (
see here).
But what about utilizing Launchpad code ? It is able to detect key press events as well, only it's closer to hardware.