Handling Android pause/menu buttons.