TOUPPER() like code in actionscript

hello guys, im creating a “run” like menu in my game whre u will type in “command” and a window ala dos prompt will appear. the problem is, it will only work if the typed letters is all lower case. how can i implement the code for this whre you can type any letter combinations and it will still work. for example.“CoMManD”, or COMMAND, or commAnD. something like that.