Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try ...