protected void initialize() throws JposException {
Debug.logInfo("Keyboard [" + control.getPhysicalDeviceName() + "] Claimed : " + control.getClaimed(), module);
final jpos.POSKeyboard keyboard = (jpos.POSKeyboard) control;
keyboard.addDataListener(new DataEventAdaptor() {
public void dataOccurred(jpos.events.DataEvent event) {
Debug.log("POSKeyboard DataEvent - " + event.getWhen(), module);
try {
int keyCode = keyboard.getPOSKeyData();
Debug.log("Received KeyCode From POSKeyboard DataEvent : " + keyCode, module);