Soft keyboard overruling usb keyboard

Is it possible to block a usb keyboard when it is still connected ?
I want to have it connected all the time, but I want to be able to use the soft keyboard.
In other words: I want the soft keyboard to overrule the usb keyboard.
How do I do that?