Added feature of accepting data without Enter