Checkout the adafruit keyboard and combo hid libraries for the Trinket - all Trinket libraries work on the Digispark (Trinket is a derivative of the spark) - and they have more feature support, with slightly less compatibility then our keyboard library