Memory fixes

Fixed keyboardControlDelegate, which was getting retained, and keyboardActiveInput which was getting a zombie reference.