Some rats like to groom and trim fingernails. I believe a few members on here have rats that have similar habits. It might not be something you can fix, but you can try making a pained rat noise when he does it or giving him a stern "no" if you think he'll listen.