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