use keydown instead of keypress to avoid double letters in Safari on right side typing