Correct a bug with special key (issue #163)