Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
trace("Key char: "+chr(Key.getAscii()));
if (chr(Key.getAscii()) == "r" || chr(Key.getAscii()) == "R") {
// they clicked R or r put your code here
}
};
Key.addListener(cp.keyListener);