event conflicts prevention (for fixed shortcuts including temporary tools)

1. prevent fixed shortcuts to be executed while drawing
2. temporary tool will not return to previous state until both mouse and
shortcut keys are released