rewriting keyboard file