code: def on_key_press(event):
      if event.key == "t":
          texture_filter.enabled = not texture_filter.enabled
          canvas.update()
      if event.key == "s":
          shading_filter.shading = next(shading_cycle)
          canvas.update()
      if event.key == "c":
          mesh.instance_colors = next(color_cycle)
          canvas.update()
      if event.key == "f":
          mesh.set_data(
              vertices=vertices,
              faces=faces,
              face_colors=next(face_color_cycle),
          )
          canvas.update()
      if event.key == "w":
          wireframe_filter.enabled = not wireframe_filter.enabled
          canvas.update()
  
file_path: vispy/examples/scene/instanced_mesh_visual.py
imports: from itertools import cycle
  import numpy
  from scipy.spatial.transform import Rotation
  from vispy import app, scene, use
  from vispy.io import imread, load_data_file, read_mesh
  from vispy.scene.visuals import InstancedMesh
  from vispy.visuals.filters import InstancedShadingFilter, WireframeFilter, TextureFilter
label_desc: Use image node_id 2 for calling a global function with example usage: on_key_press(event) without return types