Fixed C modes overriding some shortcuts and added nice functions for checking where key is defined