refactored js keyDisable