TypeError: Cannot read property 'play' of undefined

I am new at PlayCanvas, and making a game that allows the user to change scenes once the criteria had been fulfilled.
However, after teleporting to the new scene , there is this error

TypeError: Cannot read property ‘play’ of undefined
at scriptType.PlayerAnimationHandler.setDirection
at scriptType.PlayerAnimationHandler.keyChange
at Keyboard.fire
at Keyboard._handleKeyDown

I don’t know what is wrong. Any help is appreciated
Link : https://playcanvas.com/editor/scene/1012568

Hi @Sob_Pob and welcome,

Are you still experiencing this issue? I am running your game and it seems to be working with no error. Are there certain steps to reproduce your issue?