fixed TAB(80) bug
added tests for TAB(
implemented &h40:&h17 keyboard flag