Call stdin.setRawMode and stdin.resume

Before callback, call stdin.setRawMode(true) and stdin.resume(). A test case where this is required is when using `keypress` npm module. After callback, `keypress` is not triggered anymore.