CanvasScript3
>
Tests
> KeyboardEvent - KeyDown
Code
/* * Click on the stage for focus. */ var stage = new Stage("canvas", 420, 500, 30); stage.addEventListener(KeyboardEvent.KEY_DOWN, function(e) { trace("keyCode : " + e.keyCode); trace("ctrlKey : " + e.ctrlKey); trace("altKey : " + e.altKey); trace("shiftKey: " + e.shiftKey); trace("-------------"); });
Canvas
Output