i have googling and try the code but its doesnt works… can u help me ? thanks in advance
Check line 68 in SimpleApplication.java and also line 218 of the same class.
Now check the methods available with inputManager.
Of course you could also override the ESC key with a trigger of your own.