A simple, robust, foundation to build upon. I would have enjoyed some music to flesh out the experience while picking locks.
As far as the code is concerned, there is something odd about starting the key sequence. Occasionally as soon as I hit 'enter' I immediately fail. Perhaps an event propagation issue?