Implemented input service.

Implemented a service for input and an input component.The component's
update order is set to 1 to first update the input state.