timeout fix
docfix
implement test cases for keypress()