Keyboard management


  • Use arrow keys to move elements across the screen.
  • Click on actors to select them.

This demo features the following elements:

  • Create events per frame. It is achieved by creating a 'forever' timer and setting a callback on timer tick.
  • Register a CAAT keyListener function.
  • Correctly interpret key events.