This example by @MarkHunte has a demo document, for others looking to build this: Virtual keyboard for use with Textareas