What a nice security improvement, many thanks for developing this! It should be default in all operating systems to only accept known USB devices and in the case of new USB devices prompt the user with a clear warning message.
"Type the following words on the newly connected keyboard."
"Move the newly connected mouse in the following directions, in order."