I take it this was posted before code tags :P
Anyway, I'll just elaborate since this isn't enough of an addition to warrant its own tutorial. If you want that old favourite of a quality toggle button, here's one way of doing it:
var qual:uint = 2;
// add your own event listener for the toggle event
// for a specific key press, you'll need to add a line or two of code in the function to find the key
// e.g. if(ev.keyCode == blah){
function toggleEvent(ev:* = null):void{
qual = (qual + 1) % 3;
if(qual == 0){
stage.quality = StageQuality.LOW;
}
else if(qual == 1){
stage.quality = StageQuality.MEDIUM;
}
else{
stage.quality = StageQuality.HIGH;
};
// you can use case, switch and break for this if you prefer. I'm not clear on which is faster,
// but for an occasionally called event like this the difference will be negligible anyway
};