☑ Problem with keyCodes (use keydown instead of keypress)

Then start from tutorials and learning whole things, best way:

  1. Use google, a lot. We all professional do it on the minute-basis.
  2. Developer Manual and Reference, Tutorials, all here: http://developer.playcanvas.com/en/
  3. Google A LOT!
  4. Don’t rush, go slow. Split tasks into smaller until you understand them.
  5. People will not code for you - remember that. Don’t ask to code stuff for you or make your own homework.
  6. Learn how to learn and discover and investigate things - it is daily activities that developers do.
  7. Learn JavaScript: https://www.codecademy.com/learn/learn-javascript
  8. People here on forum are because they want to contribute back, not to do your job. So please, respect the community, and bring something valuable back, so we all grow as a community.
  9. Repeat from #1!

ok i will try it if i need more help i will ask btw are you the only person to answer the question

You need at least a basic understanding of programming and especially Javascript in order to write scripts. Best thing would be to start learning Javascript and experiment with various things in playcanvas while your skills improve. You cannot make a game without learning how to code unless you hire a programmer.