Add keys and key state.