prevent multiple keypress events
prevent multiple keypress events