Fix #14, filter out special key sequences from input