Press physical button

Hi

I’m trying to perform mobile test on android smartphone, my issue is that I’m not able to press a physical button with code 285. I tried with:
AppiumDriver<?> driver = MobileDriverFactory.getDriver()
driver.pressKey(new KeyEvent(AndroidKey.xxx)
.withFlag(KeyEventFlag.LONG_PRESS));
But is not possible to set AndroidKey=285, the I tried with:
Mobile.sendKeys(String.valueOf(285)), but also this test is failed

I found
driver.longPressKeyCode(285)

but the button pressure is not performed, instead is working fine for other value like 25(volume_down)