Fix for keyboards with dead keys.
This fixes the problem that users are unable to enter an apostrophe (' or "). This happened if they used a keyboard layout that does not immediately show the apostrophe on press, but instead waits for another character to be entered. E.g. ['] + [a] does not give 'a, but á.