Changed the input handling structure so now only the input target has access to the current input states.