data class KeyboardEvent(val type: String, val detail: Long, val key: String, val altKey: Boolean, val ctrlKey: Boolean, val code: String, val location: Int, val metaKey: Boolean, val shiftKey: Boolean, val locale: String? = null, val isComposing: Boolean, val retrieved: JsonElement = JsonNull)(source) Corresponds to a JavaScript event object.