Add key listeners, support for 3 types of input
Preserve pin text during configuration changes