Redirects stdin to stdout while grabbing mouse/keyboard input