With adb shell input keyevent certain key events can be simulated. There are also modifier keys like SHIFT_LEFT, ALT_RIGHT etc.
I would like to simulate two keys, for instance SHIFT + A, but
adb shell input keyevent SHIFT_LEFT; keyevent A
results only in a simple a on the screen.