Fixed bug. interupt from keyboard was not releasing lock.