add keypress event for login pin