The code posted above should do what you want (making Puck.js appear as a keyboard to the connected computer).
There's a tutorial on it here, which might be best to start off with? http://www.espruino.com/Puck.js+Keyboard
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The code posted above should do what you want (making Puck.js appear as a keyboard to the connected computer).
There's a tutorial on it here, which might be best to start off with? http://www.espruino.com/Puck.js+Keyboard