class myCanvas(vispyApp.Canvas):
... #init and other stuff here
def on_key_press( self , event ):
#do stuff
which worked fine using SDL2 but now that I'm using pyglet I'm getting the error:
AttributeError: 'NoneType' object has no attribute 'name'
Any ideas how to fix this?