add js dispatch key event