Hey,I'm sharing a link just check it: " http://www.greywyvern.com/code/javascript/keyboard " Hope you find it relevant.
looks like a canvas-based generator using a sprite sheet. Just search for a canvas library, the generator itsself/the functionality is low level programming a can be done easily with javascript. projectsinternship.com