Updat js file, mousedown and keydown issues