Code example for KeyEvent

Methods: getKeyCode

0
				return ArrowKeyMovementMethod.getInstance();
			} 
 
			@Override 
			public boolean onKeyDown (int keyCode, KeyEvent event) {
				Log.d("Test", "down keycode: " + event.getKeyCode());
				return super.onKeyDown(keyCode, event);
			} 
 
			@Override 
			public boolean onKeyUp (int keyCode, KeyEvent event) {
				Log.d("Test", "up keycode: " + event.getKeyCode());
				return super.onKeyUp(keyCode, event);
			} 
		}; 
// view.setCursorVisible(false); 
		return view;
	} 
 
	public void setVisible (boolean visible) {
		if (visible && dialog != null) {