Cant see "driver.sendKeyEvent" in eclipse for Keyboard handling in Appium. Please suggest

Cant see “driver.sendKeyEvent” in eclipse for Keyboard handling in Appium. Cant see pressKeyCode() option either. I am using java-client 4.0.0. Please suggest