I know that it's possible to send printable input to subprocess
es by write
ing to their stdin
from subprocess import, Popen, PIPE
proc = Popen([command, goes, here], stdin=PIPE)
proc.stdin.write("m")
How would I go about sending input such as arrow key presses, space, return, or backspace?