add keypress tests