/** * Looks up the keyCode from a given KEYCODE_NAME. NOTE: This may be an expensive operation. * * @param keyName the name of the KEYCODE_VALUE to lookup. * @returns the intenger keyCode value, or KeyEvent.KEYCODE_UNKNOWN if not found */ public static int getKeyCode(String keyName) { return KeyEvent.keyCodeFromString(keyName); }