Fix stuck key problem