Modified the InputService

Created an interface "IInputService" that is platform independent, and
split the logic between the platform handler and the input-state proper.