Add primitives for interacting with hidden and pen mode.