InputAPI: Support c++ code to disable releasing all keyboard and mouse buttons when application is not active.