def on_key_press( self, k, m ):
        if k in (key.ENTER, key.ESCAPE, key.SPACE):
            self.parent.switch_to( 0 )
            return True
dataset/ETHPy150Open los-cocos/cocos/samples/tetrico/tetrico.py/ScoresLayer.on_key_press/original