Created cbreak_test to attempt to simplify the keyboard control.