Adds alllowIn parameter
added tests and code to ensure callback is called when mousetrap class is present