SI-6555 Scaladoc's class filter shouldn't drop the last character

The event handler have to wait "keyup", not "keydown".