Simulate pressing back key with shell input command