# The KeyPressEvent event cannot be acquired and processed in the emscripten environment

**URL:** https://discourse.vtk.org/t/the-keypressevent-event-cannot-be-acquired-and-processed-in-the-emscripten-environment/6891
**Category:** Development
**Created:** [October 15, 2021, 7:17am UTC](https://discourse.vtk.org/t/the-keypressevent-event-cannot-be-acquired-and-processed-in-the-emscripten-environment/6891 "2021-10-15T07:17:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Kevin\_Jiang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kevin_jiang/32/3817_2.png) [@Kevin\_Jiang](https://discourse.vtk.org/u/Kevin_Jiang)
#### Post date: [October 15, 2021, 7:17am UTC](https://discourse.vtk.org/t/the-keypressevent-event-cannot-be-acquired-and-processed-in-the-emscripten-environment/6891/1 "2021-10-15T07:17:50Z")

</div>

I recently followed your vtkDearImGUIInjector project and built it under emscripten.My development environment is：  
VTK：  
git clone [https://gitlab.kitware.com/vtk/VTK.git](https://gitlab.kitware.com/vtk/VTK.git)  
git checkout b39f9bfb  
Emscripten：  
1.39.10  
I see you handled the incident response here：

void vtkDearImGUIInjector::InstallEventCallback(vtkRenderWindowInteractor \*interactor)

void vtkDearImGUIInjector::DispatchEv(vtkObject \*caller, unsigned long eid, void \*clientData, void \*callData)

but，Can not enter the following code branch，Operating system events were not successfully moved in。

case vtkCommand::KeyPressEvent:

Does that friend understand the cause or solution of this problem, thank you very much
