Create keyManager.py

Acting functions to be called using event system.