The Immersive Mode on Android hides all system bars when the app is running, thus giving you access to the full width and height of the screen (this is useful for getting integer aspect ration when zooming).First you have to find the the template GameActivity.java file that the system uses to generate the apps code. Usually it is located at HaxeToolkit\haxe\lib\lime[currentVersion]\templates\android\template\src\org\haxe\lime then modify it to include
import android.view.KeyEvent;
in the imports field, and