on keystroke design not working