refactor keyfilBtn for broader usage