Adding Gateway to KeyboardManager. Renaming linear algebra functions class