Fix #14, filter out special key sequences from input

This fixes the issue I had, don't know if it is ok?