The internal flash is useless for shooting the stuffs. External flash light and flash LED for macro can use it perfectly. You should put the external flash light to the 90degree(upperside) when you shot the keyboard.
My best pictures were coming out when I had two external wireless flashes set up for indirect lighting (ceiling and wall reflection). When you don't have that available, sometimes it's better to shoot with natural lighting at good angles at a higher sensitivity.
Wireless flashes are becoming cheaper, although macro ring flashes are still pretty expensive.