three.js extension to keep the current state of the keyboard