fixed the get response problem by integrating a new keyboardresponse function