If not using a real keyboard

I am unable to use a full size keyboard and can barely use a mini-keyboard. I use an on-screen keyboard and I have a mouse with extra buttons. When I enter the test window I cant get to the on-screen keyboard to exit the test window. I cant program my mouse to press escape because escape is not given as an option to program. I can program it to press the Windows button. I could then End Task. Is that the only other way to exit without using an actual keyboard?

You can call something like stop(); in the simpleapplication

Making youre own listenerer to call this method (I assume you have read all tutorials)

If you need this capability for testing you can just set the fly cam to drag on rotate or disabled, e.g.:
flyCam.setEnabled(false);
or
flyCam.setDragToRotate(false);
That will allow the cursor to be visible.

I will keep that in mind.