Disallow alt and ctrl key for foreign input

Closes #475.