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.

This fixes http://stackoverflow.com/q/25268882/1420197