Help with script errror

i have this school project do soon and i really need help!! i am new to this but i have entered everything correctly in my eyes and i cant figure it out the error im getting is

Uncaught TypeError: Cannot read properties of undefined (reading ‘keyboard’)
here is my editor url and my code url

https://launch.playcanvas.com/2083474?debug=true

https://playcanvas.com/editor/code/1261503?tabs=198161379,198172709

please help

wow.

ok so the issue is that in lines 30 - 41 need to be inside the function labeled update(). Doing that should partially fix the disaster.

1 Like

?? HOW do i do that