Added methods for resource-management to the input-device interface.
The keyboard is now available as a polling input-device.