fixed compile errors in keyboard active unit
fixed compile errors in mouse active unit
temporarily fixed mousedef