keydown instead of keyup for a more responsive interface