Internal keyways are usually broached. If the torque load is not high you can use a round key(rod) and drill the keyway. What is the bore dia. and what is your application? The other way is to put a round bar in the bore, drill a round hole and then square it up with a file.
Enco sells individual broaches.