onKey

fun onKey(keyCode: Int, event: KeyEvent, type: KeyEvent.Type, long: Boolean): Boolean