TC25 keystroke output not raising javascript keypress event

I'm trying to capture barcode data from the internal scanner on HTML5 page without an input field to prevent the android keyboard popup.

The code works perfectly on our TC51, but the keypress event is not fired on the TC25.

The Datawedge configuration is the same on both devices. 

TC51 Datawedge v6.6.47

Keystroke output : Enabled

Action key : none

Advanced data formatting, Basic data formatting : Disabled.

The following event has been added to the page

    document.addEventListener("keypress", function (e) {

        if ( !== "INPUT") {

            $("#barcodeInputHidden").val($("#barcodeInputHidden").val() + e.key);


            if (!barcodeTimerRunning) { barcodeTimerStart(); }




    function barcodeTimerStart() {

        barcodeTimerRunning = true;

        setTimeout(function () {

            var barcode = $("#barcodeInputHidden").val();


            console.log('barcode : ' + barcode);



            barcodeTimerRunning = false;

        }, 500);