Disable pop-up keyboard in perspective on Android device

I can't figure out how to disable the touch screen keyboard on an android scanner. In Vision, I created a button and toggled the field based on whether or not they wanted the pop-up keyboard to display. The only solution I could find was to disable the pop-up keyboard on the Android device, which obviously prevents the user from entering data into my app. 99% of the time it works directly with scans, but if a bar code is damaged, they need to key in the bar code. In the vision app they touch a button to enable the keyboard, enter the tag number, and then touch the button again to disable the keyboard.

#Code on button in vision version of this mobile app:
keyBoardOnOff = event.source.parent.getComponent('btnKeyboardOnOff').text
if keyBoardOnOff == "ON":
	event.source.parent.getComponent('btnKeyboardOnOff').text = "OFF"
	event.source.parent.getComponent('tboPrmRoomDirScan').touchscreenMode = 0
	event.source.parent.getComponent('tboPrmBinTagScan').touchscreenMode = 0

else:
	event.source.parent.getComponent('btnKeyboardOnOff').text = "ON"
	event.source.parent.getComponent('tboPrmRoomDirScan').touchscreenMode = 1
	event.source.parent.getComponent('tboPrmBinTagScan').touchscreenMode = 1

Is there a way to mimic this behavior in perspective?