input events with loop state

keyboard events will only be handled when the loops state is true.