Removed extraneous code and changed keyboard control code to be tested