This particular code hasn't changed in over four years, so you must have been previously using a *really* old version.
The above could be read to indicate that the UDF isn't W3C compliant. Was that your intended meaning? If so, please elaborate on how it doesn't comply with the W3C Webdriver specs.
P.S. IIRC, there are multiple examples on this forum for sending keystrokes using _WD_Action.