Changed the functions to correct minipulate the bits :D
Added Debug flag and and rule for the keyscheduling tests.
Initial commit for the test keycheducling file used for debugging keyscheduling.