# Disabling hotkeys of changing representation in vtk.js

**URL:** https://discourse.vtk.org/t/disabling-hotkeys-of-changing-representation-in-vtk-js/9418
**Category:** Web
**Created:** [September 21, 2022, 10:42am UTC](https://discourse.vtk.org/t/disabling-hotkeys-of-changing-representation-in-vtk-js/9418 "2022-09-21T10:42:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nikhil216](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nikhil216/32/3680_2.png) [@Nikhil216](https://discourse.vtk.org/u/Nikhil216)
#### Post date: [September 21, 2022, 10:42am UTC](https://discourse.vtk.org/t/disabling-hotkeys-of-changing-representation-in-vtk-js/9418/1 "2022-09-21T10:42:56Z")

</div>

This issue is related to vtk.js.  
I want to disable the hotkeys which sets the representation of the actors. For example go to this [simple cone example](https://kitware.github.io/vtk-js/examples/SimpleCone.html) and try pressing these buttons for setting the representation  
v: points  
w: edges  
s: surface

I would like to disable these hotkeys, any idea how to get this done?

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [September 21, 2022, 11:03am UTC](https://discourse.vtk.org/t/disabling-hotkeys-of-changing-representation-in-vtk-js/9418/2 "2022-09-21T11:03:02Z")

</div>

This default behavior is implemented in the [InteractorStyle](https://github.com/Kitware/vtk-js/blob/master/Sources/Rendering/Core/InteractorStyle/index.js#L59) of your renderwindowinteractor.  
You can overwrite `publicAPI.handleKeyPress` to disable that behavior.
