edited monitor state to allow input and output keys