do not crash if you use keyboard after finish