JavaScript: is key pressed (Cable)