use keydown instead of keypress