flexible getKeyboardNumber for all laptops/scanners