The flash.system.IME.enabled property tells you whether the user is using the IME or entering text straight from the keyboard.
package{ import flash.display.Sprite; import flash.system.Capabilities; public class Main extends Sprite{ public function Main(){ trace(flash.system.IME.enabled); } } }