Some keyboard errors removed.
Safe program exit for pin panels implemented.