I've been experimenting with a JavaScript keyboard library designed specifically for three.js, and it's fascinating how it can recognize when a key is released. I'm curious about how to integrate this feature into my current project. The documentation that I am referring to can be found here:
Currently, this is how I am detecting which keys are being pressed:
if (keyboard.pressed("left")){
//do stuff
}