Fix input with keyboard modifier.