code: def on_key_press(event):
      if event.key == "p":
          face_picking_filter.enabled = not face_picking_filter.enabled
          mesh.update_gl_state(blend=not face_picking_filter.enabled)
          mesh.update()
  
      if event.key == "r":
          mesh.set_data(vertices, faces, face_colors=face_colors)
  
      if event.key == "s":
          shading_filter.shading = next(shading)
          mesh.update()
  
      if event.key == "w":
          wireframe_filter.enabled = not wireframe_filter.enabled
          mesh.update()
  
file_path: vispy/examples/scene/face_picking.py
imports: import argparse
  import itertools
  import time
  import numpy
  from vispy import app, scene
  from vispy.io import read_mesh, load_data_file
  from vispy.scene.visuals import Mesh
  from vispy.scene import transforms
  from vispy.visuals.filters import ShadingFilter, WireframeFilter, FacePickingFilter
label_desc: Use image node_id 3 for calling a global function with example usage: on_key_press(event) without return types