Bluetooth HID can't be enabled while your Bluetooth connection is still active. To make it work you need to upload the code, disconnect, and then reconnect using your operating system's 'Pair' functionality. After that, pressing the button should work fine.
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.
Bluetooth HID can't be enabled while your Bluetooth connection is still active. To make it work you need to upload the code, disconnect, and then reconnect using your operating system's 'Pair' functionality. After that, pressing the button should work fine.