> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/keypad_8h_source.md).

# keypad.h

[Go to the documentation of this file.](/adk-5.0-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/keypad_8h.md)

```cpp
 1 #ifndef KEYPAD_H
 2 #define KEYPAD_H
 3 
 4 #include <string>
 5 #include <vector>
 6 #include "csd.h"
 7 #include "ui.h"
 8 
 9 class KeyPad
 10 {
 11  public:
 12  typedef void (* callback_t)(unsigned char, csd::csd_string);
 13 
 17  static KeyPad &getInstance()
 18  {
 19  static KeyPad instance;
 20  return instance;
 21  }
 22 
 23  ~KeyPad();
 24 
 36  int enterData(csd::csd_string &data, enum DataEntryType entryType, callback_t cb, unsigned char minInputLength, unsigned char maxInputLength, unsigned short timeout = 0, unsigned char skipCb9FFE = 0);
 37 
 38  private:
 39  KeyPad();
 40  KeyPad(const KeyPad &other); // non construction-copyable
 41  KeyPad &operator=(const KeyPad &); // non copyable
 42 
 43 };
 44 
 45 #endif // KEYPAD_H
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/keypad_8h_source.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
