Refactor done! Input works on terminal! Ctrl+c works!