Pointer, key, and text input state