Disable shortcut

I'd like to disable shortcuts when the application is open. Here is my code, it works on the simulation but not on the watch. When the down button is pressed, it will open a shortcut. Here is my code.

    function onKey(keyEvent) {
       
        _timer = new Timer.Timer();
        //System.println(keyEvent.getType().toString());
        var _key = keyEvent.getKey();
        System.println(_key.toString());
        System.println(keyEvent.getType().toString());
        if (_key ==5){

            System.println("QUIT");    
            WatchUi.popView(WatchUi.SLIDE_RIGHT);

        }

        if (_key ==13){

            System.println("ADD");    
           
            addValInputConfig(1);
           

        }

        if (_key ==8){

            System.println("SUB");    
           
            subValInputConfig(1);
           

        }
        //Incrémentation rapide
        if (_key == 7){
            //System.println("Incrémentation rapide");

            _timer.start(self.method(:addFastValInputConfig), 100, true);
           
        }

        if (_key == 22){
            //System.println("Incrémentation rapide");
            _timer.start(self.method(:subFastValInputConfig), 100, true);
           
        }

                   


        return true;
    }

An idea of how I could disable them

Simon