Fix foreign keyboard input