Handling ESC and BACK (android) properly.