Fix input of accented keys.

Submitted by: tomek