Finished the determination of the virtual key based on scan codes. Still a work in progress, but I am understanding the KPD dll files more and more.