Python key codes
Replace py game API with delegate class instead of registering callback functions