Can i send key event with a number

Is there any way to do the following:
Case 1: adb shell input keyevent 121
Case 2: adb push image.png /sdcard/img.jpg

Any help appreciated…

look at -> http://appium.io/docs/en/writing-running-appium/android/android-shell/

Case 2: adb push image.png /sdcard/img.jpg

Case 1: adb shell input keyevent 121

Use the above with java-client/src/main/java/io/appium/java_client/android/nativekey/AndroidKey.java at 4f197109ad9d39564dae0aff72051ef8f28012a8 · appium/java-client · GitHub

Thank you.
I did this way.