public void onBackKeyPressEvent() { if (!(keyEvent != null)) { keyEvent = new cave.KeyEvent(); } keyEvent.clear(); keyEvent.setAction(cave.KeyEvent.ACTION_DOWN); keyEvent.setKeyCode(cave.KeyEvent.KEY_BACK); deliverKeyEventToWidget(keyEvent, getWidget()); }