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 https://github.com/appium/java-client/blob/4f197109ad9d39564dae0aff72051ef8f28012a8/src/main/java/io/appium/java_client/android/nativekey/AndroidKey.java#L546

Thank you.
I did this way.