code: def keyboard(k, x, y):
      global ViewRZ, SpeedRendering
      LC_Z = glut.as_8_bit("z")
      UC_Z = glut.as_8_bit("Z")
      Plus = glut.as_8_bit("+")
      Minus = glut.as_8_bit("-")
      Switch = glut.as_8_bit("s")
  
      Zoom = 1
      if k == LC_Z:
          ViewRZ += 1.0
      elif k == UC_Z:
          ViewRZ -= 1.0
      elif k == Plus:
          Zoom *= 2.0
      elif k == Minus:
          Zoom /= 2.0
      elif k == Switch:
          if SpeedRendering:
              SpeedRendering = False
          else:
              SpeedRendering = True
      elif ord(k) == 27:  # Escape
          glut.glutLeaveMainLoop()
          return False
      else:
          return
      gl.glRotatef(ViewRZ, 0.0, 0.0, 1.0)
      gl.glScalef(Zoom, Zoom, Zoom)
      glut.glutPostRedisplay()
  
file_path: pyopencl/examples/n-body.py
imports: import getopt
  import sys
  import time
  import numpy
  import pyopencl
  import pyopencl.array
  from numpy.random import randint
label_desc: Use image node_id 5 for calling a global function with example usage: keyboard(k, x, y) and returns: False