encoding sync and done button for keypad