To test my code I do have to connect it to my PC as a keyboard
Well, if you don't want to physically touch your Puck then yes, to debug you have to be connected via Bluetooth.
But it is possible to solder on a UART connection, then you can debug and reprogram via the UART while being connected (possibly to a different computer) by Bluetooth: http://www.espruino.com/Puck.js#serial-console
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.
Well, if you don't want to physically touch your Puck then yes, to debug you have to be connected via Bluetooth.
But it is possible to solder on a UART connection, then you can debug and reprogram via the UART while being connected (possibly to a different computer) by Bluetooth: http://www.espruino.com/Puck.js#serial-console